home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 32 / CD Expert nº 32.iso / Unreal T / utdemo338.exe / System / UWindow.u / ScriptText10.TextBuffer < prev    next >
Unknown  |  1999-09-27  |  20.6 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 64 c9 02 63 6c 61 73 73 |........|d..class|
|00000010| 20 55 57 69 6e 64 6f 77 | 48 54 4d 4c 54 65 78 74 | UWindow|HTMLText|
|00000020| 41 72 65 61 20 65 78 70 | 61 6e 64 73 20 55 57 69 |Area exp|ands UWi|
|00000030| 6e 64 6f 77 44 79 6e 61 | 6d 69 63 54 65 78 74 41 |ndowDyna|micTextA|
|00000040| 72 65 61 3b 0d 0a 0d 0a | 2f 2a 0d 0a 0d 0a 48 54 |rea;....|/*....HT|
|00000050| 4d 4c 20 43 75 72 72 65 | 6e 74 6c 79 20 53 75 70 |ML Curre|ntly Sup|
|00000060| 70 6f 72 74 65 64 0d 0a | 3d 3d 3d 3d 3d 3d 3d 3d |ported..|========|
|00000070| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000080| 0d 0a 0d 0a 50 61 72 73 | 65 64 20 6f 6e 20 61 64 |....Pars|ed on ad|
|00000090| 64 0d 0a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |d..-----|--------|
|000000a0| 0d 0a 3c 62 6f 64 79 20 | 62 67 63 6f 6c 6f 72 3d |..<body |bgcolor=|
|000000b0| 23 66 66 66 66 66 66 20 | 6c 69 6e 6b 3d 23 66 66 |#ffffff |link=#ff|
|000000c0| 66 66 66 66 20 61 6c 69 | 6e 6b 3d 23 66 66 66 66 |ffff ali|nk=#ffff|
|000000d0| 66 66 3e 2e 2e 2e 3c 2f | 62 6f 64 79 3e 0d 0a 3c |ff>...</|body>..<|
|000000e0| 66 6f 6e 74 20 63 6f 6c | 6f 72 3d 23 66 66 66 66 |font col|or=#ffff|
|000000f0| 66 66 20 62 67 63 6f 6c | 6f 72 3d 23 66 66 66 66 |ff bgcol|or=#ffff|
|00000100| 66 66 3e 2e 2e 2e 3c 2f | 66 6f 6e 74 3e 0d 0a 3c |ff>...</|font>..<|
|00000110| 62 72 3e 0d 0a 3c 63 65 | 6e 74 65 72 3e 2e 2e 2e |br>..<ce|nter>...|
|00000120| 2e 3c 2f 63 65 6e 74 65 | 72 3e 0d 0a 3c 70 3e 0d |.</cente|r>..<p>.|
|00000130| 0a 3c 68 31 3e 2e 2e 2e | 3c 2f 68 31 3e 0d 0a 0d |.<h1>...|</h1>...|
|00000140| 0a 50 61 72 73 65 64 20 | 6f 6e 20 61 64 64 20 61 |.Parsed |on add a|
|00000150| 6e 64 20 64 69 73 70 6c | 61 79 0d 0a 2d 2d 2d 2d |nd displ|ay..----|
|00000160| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000170| 2d 2d 2d 2d 2d 0d 0a 3c | 6e 6f 62 72 3e 2e 2e 2e |-----..<|nobr>...|
|00000180| 3c 2f 6e 6f 62 72 3e 0d | 0a 3c 61 20 68 72 65 66 |</nobr>.|.<a href|
|00000190| 3d 22 2e 2e 2e 22 3e 2e | 2e 2e 3c 2f 61 3e 0d 0a |="...">.|..</a>..|
|000001a0| 3c 62 3e 2e 2e 2e 3c 2f | 62 3e 0d 0a 3c 75 3e 2e |<b>...</|b>..<u>.|
|000001b0| 2e 2e 3c 2f 75 3e 0d 0a | 3c 62 6c 69 6e 6b 3e 2e |..</u>..|<blink>.|
|000001c0| 2e 2e 3c 2f 62 6c 69 6e | 6b 3e 0d 0a 0d 0a 50 61 |..</blin|k>....Pa|
|000001d0| 72 73 65 64 20 6f 6e 6c | 79 20 6f 6e 20 64 69 73 |rsed onl|y on dis|
|000001e0| 70 6c 61 79 0d 0a 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |play..--|--------|
|000001f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 0a 26 67 |--------|----..&g|
|00000200| 74 3b 0d 0a 26 6c 74 3b | 0d 0a 26 61 6d 70 3b 0d |t;..&lt;|..&amp;.|
|00000210| 0a 26 6e 62 73 70 3b 0d | 0a 0d 0a 50 6c 61 6e 6e |.&nbsp;.|...Plann|
|00000220| 65 64 20 69 6d 70 72 6f | 76 65 6d 65 6e 74 73 0d |ed impro|vements.|
|00000230| 0a 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.-------|--------|
|00000240| 2d 2d 2d 2d 2d 0d 0a 3c | 75 6c 3e 3c 6c 69 3e 69 |-----..<|ul><li>i|
|00000250| 74 65 6d 20 31 3c 6c 69 | 3e 69 74 65 6d 20 32 2e |tem 1<li|>item 2.|
|00000260| 2e 2e 3c 2f 75 6c 3e 0d | 0a 3c 74 61 62 6c 65 3e |..</ul>.|.<table>|
|00000270| 2e 2e 2e 3c 2f 74 61 62 | 6c 65 3e 0d 0a 0d 0a 42 |...</tab|le>....B|
|00000280| 75 67 73 0d 0a 2d 2d 2d | 2d 0d 0a 54 68 65 20 70 |ugs..---|-..The p|
|00000290| 61 72 73 69 6e 67 20 69 | 73 20 70 72 65 74 74 79 |arsing i|s pretty|
|000002a0| 20 73 6c 61 63 6b 21 0d | 0a 0d 0a 2a 2f 0d 0a 0d | slack!.|...*/...|
|000002b0| 0a 2f 2f 20 64 65 66 61 | 75 6c 74 20 73 74 79 6c |.// defa|ult styl|
|000002c0| 65 73 0d 0a 76 61 72 20 | 43 6f 6c 6f 72 20 54 65 |es..var |Color Te|
|000002d0| 78 74 43 6f 6c 6f 72 3b | 0d 0a 76 61 72 20 43 6f |xtColor;|..var Co|
|000002e0| 6c 6f 72 20 42 47 43 6f | 6c 6f 72 3b 0d 0a 76 61 |lor BGCo|lor;..va|
|000002f0| 72 20 43 6f 6c 6f 72 20 | 4c 69 6e 6b 43 6f 6c 6f |r Color |LinkColo|
|00000300| 72 3b 0d 0a 76 61 72 20 | 43 6f 6c 6f 72 20 41 4c |r;..var |Color AL|
|00000310| 69 6e 6b 43 6f 6c 6f 72 | 3b 0d 0a 76 61 72 20 66 |inkColor|;..var f|
|00000320| 6c 6f 61 74 20 4c 61 73 | 74 42 6c 69 6e 6b 54 69 |loat Las|tBlinkTi|
|00000330| 6d 65 3b 0d 0a 76 61 72 | 20 62 6f 6f 6c 20 62 53 |me;..var| bool bS|
|00000340| 68 6f 77 42 6c 69 6e 6b | 3b 0d 0a 76 61 72 20 62 |howBlink|;..var b|
|00000350| 6f 6f 6c 20 62 52 65 6c | 65 61 73 65 64 3b 0d 0a |ool bRel|eased;..|
|00000360| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 53 65 74 48 54 |..functi|on SetHT|
|00000370| 4d 4c 28 73 74 72 69 6e | 67 20 48 54 4d 4c 29 0d |ML(strin|g HTML).|
|00000380| 0a 7b 0d 0a 09 43 6c 65 | 61 72 28 29 3b 0d 0a 09 |.{...Cle|ar();...|
|00000390| 52 65 70 6c 61 63 65 54 | 65 78 74 28 48 54 4d 4c |ReplaceT|ext(HTML|
|000003a0| 2c 20 43 68 72 28 31 33 | 29 24 43 68 72 28 31 30 |, Chr(13|)$Chr(10|
|000003b0| 29 2c 20 22 20 22 29 3b | 0d 0a 09 52 65 70 6c 61 |), " ");|...Repla|
|000003c0| 63 65 54 65 78 74 28 48 | 54 4d 4c 2c 20 43 68 72 |ceText(H|TML, Chr|
|000003d0| 28 31 33 29 2c 20 22 20 | 22 29 3b 0d 0a 09 52 65 |(13), " |");...Re|
|000003e0| 70 6c 61 63 65 54 65 78 | 74 28 48 54 4d 4c 2c 20 |placeTex|t(HTML, |
|000003f0| 43 68 72 28 31 30 29 2c | 20 22 20 22 29 3b 0d 0a |Chr(10),| " ");..|
|00000400| 09 41 64 64 54 65 78 74 | 28 48 54 4d 4c 29 3b 0d |.AddText|(HTML);.|
|00000410| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 42 |.}....fu|nction B|
|00000420| 65 66 6f 72 65 50 61 69 | 6e 74 28 43 61 6e 76 61 |eforePai|nt(Canva|
|00000430| 73 20 43 2c 20 66 6c 6f | 61 74 20 58 2c 20 66 6c |s C, flo|at X, fl|
|00000440| 6f 61 74 20 59 29 0d 0a | 7b 0d 0a 09 53 75 70 65 |oat Y)..|{...Supe|
|00000450| 72 2e 42 65 66 6f 72 65 | 50 61 69 6e 74 28 43 2c |r.Before|Paint(C,|
|00000460| 20 58 2c 20 59 29 3b 0d | 0a 09 43 75 72 73 6f 72 | X, Y);.|..Cursor|
|00000470| 20 3d 20 52 6f 6f 74 2e | 4e 6f 72 6d 61 6c 43 75 | = Root.|NormalCu|
|00000480| 72 73 6f 72 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |rsor;..}|....func|
|00000490| 74 69 6f 6e 20 50 61 69 | 6e 74 28 43 61 6e 76 61 |tion Pai|nt(Canva|
|000004a0| 73 20 43 2c 20 66 6c 6f | 61 74 20 58 2c 20 66 6c |s C, flo|at X, fl|
|000004b0| 6f 61 74 20 59 29 0d 0a | 7b 0d 0a 09 43 2e 44 72 |oat Y)..|{...C.Dr|
|000004c0| 61 77 43 6f 6c 6f 72 20 | 3d 20 42 47 43 6f 6c 6f |awColor |= BGColo|
|000004d0| 72 3b 0d 0a 09 44 72 61 | 77 53 74 72 65 74 63 68 |r;...Dra|wStretch|
|000004e0| 65 64 54 65 78 74 75 72 | 65 28 43 2c 20 30 2c 20 |edTextur|e(C, 0, |
|000004f0| 30 2c 20 57 69 6e 57 69 | 64 74 68 2c 20 57 69 6e |0, WinWi|dth, Win|
|00000500| 48 65 69 67 68 74 2c 20 | 54 65 78 74 75 72 65 27 |Height, |Texture'|
|00000510| 57 68 69 74 65 54 65 78 | 74 75 72 65 27 29 3b 0d |WhiteTex|ture');.|
|00000520| 0a 09 53 75 70 65 72 2e | 50 61 69 6e 74 28 43 2c |..Super.|Paint(C,|
|00000530| 20 58 2c 20 59 29 3b 0d | 0a 09 62 52 65 6c 65 61 | X, Y);.|..bRelea|
|00000540| 73 65 64 20 3d 20 46 61 | 6c 73 65 3b 0d 0a 7d 0d |sed = Fa|lse;..}.|
|00000550| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 43 6c 69 63 |...funct|ion Clic|
|00000560| 6b 28 66 6c 6f 61 74 20 | 58 2c 20 66 6c 6f 61 74 |k(float |X, float|
|00000570| 20 59 29 0d 0a 7b 0d 0a | 09 53 75 70 65 72 2e 43 | Y)..{..|.Super.C|
|00000580| 6c 69 63 6b 28 58 2c 20 | 59 29 3b 0d 0a 09 62 52 |lick(X, |Y);...bR|
|00000590| 65 6c 65 61 73 65 64 20 | 3d 20 54 72 75 65 3b 0d |eleased |= True;.|
|000005a0| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 50 |.}....fu|nction P|
|000005b0| 72 6f 63 65 73 73 55 52 | 4c 28 73 74 72 69 6e 67 |rocessUR|L(string|
|000005c0| 20 55 52 4c 29 0d 0a 7b | 0d 0a 09 4c 6f 67 28 22 | URL)..{|...Log("|
|000005d0| 43 6c 69 63 6b 65 64 20 | 4c 69 6e 6b 3a 20 3e 3e |Clicked |Link: >>|
|000005e0| 22 24 55 52 4c 24 22 3c | 3c 22 29 3b 0d 0a 0d 0a |"$URL$"<|<");....|
|000005f0| 09 69 66 28 20 4c 65 66 | 74 28 55 52 4c 2c 20 37 |.if( Lef|t(URL, 7|
|00000600| 29 20 7e 3d 20 22 6d 61 | 69 6c 74 6f 3a 22 20 29 |) ~= "ma|ilto:" )|
|00000610| 0d 0a 09 09 47 65 74 50 | 6c 61 79 65 72 4f 77 6e |....GetP|layerOwn|
|00000620| 65 72 28 29 2e 43 6f 6e | 73 6f 6c 65 43 6f 6d 6d |er().Con|soleComm|
|00000630| 61 6e 64 28 22 73 74 61 | 72 74 20 22 24 55 52 4c |and("sta|rt "$URL|
|00000640| 29 3b 0d 0a 09 69 66 28 | 20 4c 65 66 74 28 55 52 |);...if(| Left(UR|
|00000650| 4c 2c 20 37 29 20 7e 3d | 20 22 68 74 74 70 3a 2f |L, 7) ~=| "http:/|
|00000660| 2f 22 20 29 0d 0a 09 09 | 47 65 74 50 6c 61 79 65 |/" )....|GetPlaye|
|00000670| 72 4f 77 6e 65 72 28 29 | 2e 43 6f 6e 73 6f 6c 65 |rOwner()|.Console|
|00000680| 43 6f 6d 6d 61 6e 64 28 | 22 73 74 61 72 74 20 22 |Command(|"start "|
|00000690| 24 55 52 4c 29 3b 0d 0a | 09 69 66 28 20 4c 65 66 |$URL);..|.if( Lef|
|000006a0| 74 28 55 52 4c 2c 20 36 | 29 20 7e 3d 20 22 66 74 |t(URL, 6|) ~= "ft|
|000006b0| 70 3a 2f 2f 22 20 29 0d | 0a 09 09 47 65 74 50 6c |p://" ).|...GetPl|
|000006c0| 61 79 65 72 4f 77 6e 65 | 72 28 29 2e 43 6f 6e 73 |ayerOwne|r().Cons|
|000006d0| 6f 6c 65 43 6f 6d 6d 61 | 6e 64 28 22 73 74 61 72 |oleComma|nd("star|
|000006e0| 74 20 22 24 55 52 4c 29 | 3b 0d 0a 09 69 66 28 20 |t "$URL)|;...if( |
|000006f0| 4c 65 66 74 28 55 52 4c | 2c 20 39 29 20 7e 3d 20 |Left(URL|, 9) ~= |
|00000700| 22 74 65 6c 6e 65 74 3a | 2f 2f 22 20 29 0d 0a 09 |"telnet:|//" )...|
|00000710| 09 47 65 74 50 6c 61 79 | 65 72 4f 77 6e 65 72 28 |.GetPlay|erOwner(|
|00000720| 29 2e 43 6f 6e 73 6f 6c | 65 43 6f 6d 6d 61 6e 64 |).Consol|eCommand|
|00000730| 28 22 73 74 61 72 74 20 | 22 24 55 52 4c 29 3b 0d |("start |"$URL);.|
|00000740| 0a 09 69 66 28 20 4c 65 | 66 74 28 55 52 4c 2c 20 |..if( Le|ft(URL, |
|00000750| 39 29 20 7e 3d 20 22 67 | 6f 70 68 65 72 3a 2f 2f |9) ~= "g|opher://|
|00000760| 22 20 29 0d 0a 09 09 47 | 65 74 50 6c 61 79 65 72 |" )....G|etPlayer|
|00000770| 4f 77 6e 65 72 28 29 2e | 43 6f 6e 73 6f 6c 65 43 |Owner().|ConsoleC|
|00000780| 6f 6d 6d 61 6e 64 28 22 | 73 74 61 72 74 20 22 24 |ommand("|start "$|
|00000790| 55 52 4c 29 3b 0d 0a 09 | 69 66 28 20 4c 65 66 74 |URL);...|if( Left|
|000007a0| 28 55 52 4c 2c 20 34 29 | 20 7e 3d 20 22 77 77 77 |(URL, 4)| ~= "www|
|000007b0| 2e 22 20 29 0d 0a 09 09 | 47 65 74 50 6c 61 79 65 |." )....|GetPlaye|
|000007c0| 72 4f 77 6e 65 72 28 29 | 2e 43 6f 6e 73 6f 6c 65 |rOwner()|.Console|
|000007d0| 43 6f 6d 6d 61 6e 64 28 | 22 73 74 61 72 74 20 68 |Command(|"start h|
|000007e0| 74 74 70 3a 2f 2f 22 24 | 55 52 4c 29 3b 0d 0a 09 |ttp://"$|URL);...|
|000007f0| 69 66 28 20 4c 65 66 74 | 28 55 52 4c 2c 20 34 29 |if( Left|(URL, 4)|
|00000800| 20 7e 3d 20 22 66 74 70 | 2e 22 20 29 0d 0a 09 09 | ~= "ftp|." )....|
|00000810| 47 65 74 50 6c 61 79 65 | 72 4f 77 6e 65 72 28 29 |GetPlaye|rOwner()|
|00000820| 2e 43 6f 6e 73 6f 6c 65 | 43 6f 6d 6d 61 6e 64 28 |.Console|Command(|
|00000830| 22 73 74 61 72 74 20 66 | 74 70 3a 2f 2f 22 24 55 |"start f|tp://"$U|
|00000840| 52 4c 29 3b 0d 0a 09 65 | 6c 73 65 0d 0a 09 69 66 |RL);...e|lse...if|
|00000850| 28 20 4c 65 66 74 28 55 | 52 4c 2c 20 39 29 20 7e |( Left(U|RL, 9) ~|
|00000860| 3d 20 22 75 6e 72 65 61 | 6c 3a 2f 2f 22 20 29 0d |= "unrea|l://" ).|
|00000870| 0a 09 09 4c 61 75 6e 63 | 68 55 6e 72 65 61 6c 55 |...Launc|hUnrealU|
|00000880| 52 4c 28 55 52 4c 29 3b | 0d 0a 7d 0d 0a 0d 0a 66 |RL(URL);|..}....f|
|00000890| 75 6e 63 74 69 6f 6e 20 | 4f 76 65 72 55 52 4c 28 |unction |OverURL(|
|000008a0| 73 74 72 69 6e 67 20 55 | 52 4c 29 0d 0a 7b 0d 0a |string U|RL)..{..|
|000008b0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 4c 61 |}....fun|ction La|
|000008c0| 75 6e 63 68 55 6e 72 65 | 61 6c 55 52 4c 28 73 74 |unchUnre|alURL(st|
|000008d0| 72 69 6e 67 20 55 52 4c | 29 0d 0a 7b 0d 0a 09 47 |ring URL|)..{...G|
|000008e0| 65 74 50 6c 61 79 65 72 | 4f 77 6e 65 72 28 29 2e |etPlayer|Owner().|
|000008f0| 43 6c 69 65 6e 74 54 72 | 61 76 65 6c 28 55 52 4c |ClientTr|avel(URL|
|00000900| 2c 20 54 52 41 56 45 4c | 5f 41 62 73 6f 6c 75 74 |, TRAVEL|_Absolut|
|00000910| 65 2c 20 66 61 6c 73 65 | 29 3b 0d 0a 7d 0d 0a 0d |e, false|);..}...|
|00000920| 0a 66 75 6e 63 74 69 6f | 6e 20 54 65 78 74 41 72 |.functio|n TextAr|
|00000930| 65 61 54 65 78 74 53 69 | 7a 65 28 43 61 6e 76 61 |eaTextSi|ze(Canva|
|00000940| 73 20 43 2c 20 73 74 72 | 69 6e 67 20 54 65 78 74 |s C, str|ing Text|
|00000950| 2c 20 6f 75 74 20 66 6c | 6f 61 74 20 57 2c 20 6f |, out fl|oat W, o|
|00000960| 75 74 20 66 6c 6f 61 74 | 20 48 29 0d 0a 7b 0d 0a |ut float| H)..{..|
|00000970| 09 52 65 70 6c 61 63 65 | 54 65 78 74 28 54 65 78 |.Replace|Text(Tex|
|00000980| 74 2c 20 22 26 6e 62 73 | 70 3b 22 2c 20 22 20 22 |t, "&nbs|p;", " "|
|00000990| 29 3b 0d 0a 09 52 65 70 | 6c 61 63 65 54 65 78 74 |);...Rep|laceText|
|000009a0| 28 54 65 78 74 2c 20 22 | 26 67 74 3b 22 2c 20 22 |(Text, "|&gt;", "|
|000009b0| 3e 22 29 3b 0d 0a 09 52 | 65 70 6c 61 63 65 54 65 |>");...R|eplaceTe|
|000009c0| 78 74 28 54 65 78 74 2c | 20 22 26 6c 74 3b 22 2c |xt(Text,| "&lt;",|
|000009d0| 20 22 3c 22 29 3b 0d 0a | 09 52 65 70 6c 61 63 65 | "<");..|.Replace|
|000009e0| 54 65 78 74 28 54 65 78 | 74 2c 20 22 26 61 6d 70 |Text(Tex|t, "&amp|
|000009f0| 3b 22 2c 20 22 26 22 29 | 3b 0d 0a 0d 0a 09 54 65 |;", "&")|;.....Te|
|00000a00| 78 74 53 69 7a 65 28 43 | 2c 20 54 65 78 74 2c 20 |xtSize(C|, Text, |
|00000a10| 57 2c 20 48 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |W, H);..|}....fun|
|00000a20| 63 74 69 6f 6e 20 54 65 | 78 74 41 72 65 61 43 6c |ction Te|xtAreaCl|
|00000a30| 69 70 54 65 78 74 28 43 | 61 6e 76 61 73 20 43 2c |ipText(C|anvas C,|
|00000a40| 20 66 6c 6f 61 74 20 44 | 72 61 77 58 2c 20 66 6c | float D|rawX, fl|
|00000a50| 6f 61 74 20 44 72 61 77 | 59 2c 20 63 6f 65 72 63 |oat Draw|Y, coerc|
|00000a60| 65 20 73 74 72 69 6e 67 | 20 54 65 78 74 2c 20 6f |e string| Text, o|
|00000a70| 70 74 69 6f 6e 61 6c 20 | 62 6f 6f 6c 20 62 43 68 |ptional |bool bCh|
|00000a80| 65 63 6b 48 6f 74 6b 65 | 79 29 0d 0a 7b 0d 0a 09 |eckHotke|y)..{...|
|00000a90| 52 65 70 6c 61 63 65 54 | 65 78 74 28 54 65 78 74 |ReplaceT|ext(Text|
|00000aa0| 2c 20 22 26 6e 62 73 70 | 3b 22 2c 20 22 20 22 29 |, "&nbsp|;", " ")|
|00000ab0| 3b 0d 0a 09 52 65 70 6c | 61 63 65 54 65 78 74 28 |;...Repl|aceText(|
|00000ac0| 54 65 78 74 2c 20 22 26 | 67 74 3b 22 2c 20 22 3e |Text, "&|gt;", ">|
|00000ad0| 22 29 3b 0d 0a 09 52 65 | 70 6c 61 63 65 54 65 78 |");...Re|placeTex|
|00000ae0| 74 28 54 65 78 74 2c 20 | 22 26 6c 74 3b 22 2c 20 |t(Text, |"&lt;", |
|00000af0| 22 3c 22 29 3b 0d 0a 09 | 52 65 70 6c 61 63 65 54 |"<");...|ReplaceT|
|00000b00| 65 78 74 28 54 65 78 74 | 2c 20 22 26 61 6d 70 3b |ext(Text|, "&amp;|
|00000b10| 22 2c 20 22 26 22 29 3b | 0d 0a 0d 0a 09 43 6c 69 |", "&");|.....Cli|
|00000b20| 70 54 65 78 74 28 43 2c | 20 44 72 61 77 58 2c 20 |pText(C,| DrawX, |
|00000b30| 44 72 61 77 59 2c 20 54 | 65 78 74 2c 20 62 43 68 |DrawY, T|ext, bCh|
|00000b40| 65 63 6b 48 6f 74 4b 65 | 79 29 3b 0d 0a 7d 0d 0a |eckHotKe|y);..}..|
|00000b50| 0d 0a 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |..//////|////////|
|00000b60| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000b70| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000b80| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 0d 0a 2f 2f 20 4f 76 |////////|/..// Ov|
|00000b90| 65 72 6c 6f 61 64 65 64 | 20 66 75 6e 63 74 69 6f |erloaded| functio|
|00000ba0| 6e 73 20 66 72 6f 6d 20 | 55 57 69 6e 64 6f 77 44 |ns from |UWindowD|
|00000bb0| 79 6e 61 6d 69 63 54 65 | 78 74 41 72 65 61 0d 0a |ynamicTe|xtArea..|
|00000bc0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000bd0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000be0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000bf0| 2f 2f 2f 2f 2f 2f 2f 0d | 0a 0d 0a 66 75 6e 63 74 |///////.|...funct|
|00000c00| 69 6f 6e 20 57 72 61 70 | 52 6f 77 28 43 61 6e 76 |ion Wrap|Row(Canv|
|00000c10| 61 73 20 43 2c 20 55 57 | 69 6e 64 6f 77 44 79 6e |as C, UW|indowDyn|
|00000c20| 61 6d 69 63 54 65 78 74 | 52 6f 77 20 4c 29 0d 0a |amicText|Row L)..|
|00000c30| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 48 54 4d 4c 53 74 |{...loca|l HTMLSt|
|00000c40| 79 6c 65 20 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |yle Curr|entStyle|
|00000c50| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 55 57 69 6e 64 6f |;...loca|l UWindo|
|00000c60| 77 48 54 4d 4c 54 65 78 | 74 52 6f 77 20 52 3b 0d |wHTMLTex|tRow R;.|
|00000c70| 0a 09 6c 6f 63 61 6c 20 | 73 74 72 69 6e 67 20 49 |..local |string I|
|00000c80| 6e 70 75 74 2c 20 4c 65 | 66 74 54 65 78 74 2c 20 |nput, Le|ftText, |
|00000c90| 48 54 4d 4c 2c 20 52 69 | 67 68 74 54 65 78 74 3b |HTML, Ri|ghtText;|
|00000ca0| 0d 0a 0d 0a 09 53 75 70 | 65 72 2e 57 72 61 70 52 |.....Sup|er.WrapR|
|00000cb0| 6f 77 28 43 2c 20 4c 29 | 3b 0d 0a 0d 0a 09 2f 2f |ow(C, L)|;.....//|
|00000cc0| 20 47 65 6e 65 72 61 74 | 65 20 74 68 65 20 44 69 | Generat|e the Di|
|00000cd0| 73 70 6c 61 79 53 74 72 | 69 6e 67 20 61 6e 64 20 |splayStr|ing and |
|00000ce0| 53 74 79 6c 65 53 74 72 | 69 6e 67 20 6c 69 6e 65 |StyleStr|ing line|
|00000cf0| 73 20 66 6f 72 20 65 61 | 63 68 20 72 6f 77 0d 0a |s for ea|ch row..|
|00000d00| 09 52 20 3d 20 55 57 69 | 6e 64 6f 77 48 54 4d 4c |.R = UWi|ndowHTML|
|00000d10| 54 65 78 74 52 6f 77 28 | 4c 29 3b 0d 0a 09 77 68 |TextRow(|L);...wh|
|00000d20| 69 6c 65 28 52 20 21 3d | 20 4e 6f 6e 65 20 26 26 |ile(R !=| None &&|
|00000d30| 20 28 52 20 3d 3d 20 4c | 20 7c 7c 20 52 2e 57 72 | (R == L| || R.Wr|
|00000d40| 61 70 50 61 72 65 6e 74 | 20 3d 3d 20 4c 29 29 0d |apParent| == L)).|
|00000d50| 0a 09 7b 0d 0a 09 09 52 | 2e 44 69 73 70 6c 61 79 |..{....R|.Display|
|00000d60| 53 74 72 69 6e 67 20 3d | 20 22 22 3b 0d 0a 09 09 |String =| "";....|
|00000d70| 52 2e 53 74 79 6c 65 53 | 74 72 69 6e 67 20 3d 20 |R.StyleS|tring = |
|00000d80| 22 22 3b 0d 0a 0d 0a 09 | 09 43 75 72 72 65 6e 74 |"";.....|.Current|
|00000d90| 53 74 79 6c 65 20 3d 20 | 52 2e 53 74 61 72 74 53 |Style = |R.StartS|
|00000da0| 74 79 6c 65 3b 0d 0a 09 | 09 0d 0a 09 09 49 6e 70 |tyle;...|.....Inp|
|00000db0| 75 74 20 3d 20 52 2e 54 | 65 78 74 3b 0d 0a 09 09 |ut = R.T|ext;....|
|00000dc0| 77 68 69 6c 65 28 49 6e | 70 75 74 20 21 3d 20 22 |while(In|put != "|
|00000dd0| 22 29 0d 0a 09 09 7b 0d | 0a 09 09 09 50 61 72 73 |")....{.|....Pars|
|00000de0| 65 48 54 4d 4c 28 49 6e | 70 75 74 2c 20 4c 65 66 |eHTML(In|put, Lef|
|00000df0| 74 54 65 78 74 2c 20 48 | 54 4d 4c 2c 20 52 69 67 |tText, H|TML, Rig|
|00000e00| 68 74 54 65 78 74 29 3b | 0d 0a 0d 0a 09 09 09 69 |htText);|.......i|
|00000e10| 66 28 4c 65 66 74 54 65 | 78 74 20 21 3d 20 22 22 |f(LeftTe|xt != ""|
|00000e20| 20 7c 7c 20 52 2e 44 69 | 73 70 6c 61 79 53 74 72 | || R.Di|splayStr|
|00000e30| 69 6e 67 20 3d 3d 20 22 | 22 29 0d 0a 09 09 09 7b |ing == "|").....{|
|00000e40| 0d 0a 09 09 09 09 52 2e | 44 69 73 70 6c 61 79 53 |......R.|DisplayS|
|00000e50| 74 72 69 6e 67 20 3d 20 | 52 2e 44 69 73 70 6c 61 |tring = |R.Displa|
|00000e60| 79 53 74 72 69 6e 67 20 | 24 20 4c 65 66 74 54 65 |yString |$ LeftTe|
|00000e70| 78 74 3b 0d 0a 09 09 09 | 09 52 2e 53 74 79 6c 65 |xt;.....|.R.Style|
|00000e80| 53 74 72 69 6e 67 20 3d | 20 52 2e 53 74 79 6c 65 |String =| R.Style|
|00000e90| 53 74 72 69 6e 67 20 24 | 20 57 72 69 74 65 53 74 |String $| WriteSt|
|00000ea0| 79 6c 65 54 65 78 74 28 | 43 75 72 72 65 6e 74 53 |yleText(|CurrentS|
|00000eb0| 74 79 6c 65 2c 20 4c 65 | 6e 28 4c 65 66 74 54 65 |tyle, Le|n(LeftTe|
|00000ec0| 78 74 29 29 3b 0d 0a 09 | 09 09 7d 0d 0a 0d 0a 09 |xt));...|..}.....|
|00000ed0| 09 09 50 72 6f 63 65 73 | 73 49 6e 6c 69 6e 65 48 |..Proces|sInlineH|
|00000ee0| 54 4d 4c 28 48 54 4d 4c | 2c 20 43 75 72 72 65 6e |TML(HTML|, Curren|
|00000ef0| 74 53 74 79 6c 65 29 3b | 0d 0a 09 09 09 53 65 74 |tStyle);|.....Set|
|00000f00| 43 61 6e 76 61 73 53 74 | 79 6c 65 28 43 2c 20 43 |CanvasSt|yle(C, C|
|00000f10| 75 72 72 65 6e 74 53 74 | 79 6c 65 29 3b 0d 0a 0d |urrentSt|yle);...|
|00000f20| 0a 09 09 09 49 6e 70 75 | 74 20 3d 20 52 69 67 68 |....Inpu|t = Righ|
|00000f30| 74 54 65 78 74 3b 0d 0a | 09 09 7d 0d 0a 0d 0a 09 |tText;..|..}.....|
|00000f40| 09 52 20 3d 20 55 57 69 | 6e 64 6f 77 48 54 4d 4c |.R = UWi|ndowHTML|
|00000f50| 54 65 78 74 52 6f 77 28 | 52 2e 4e 65 78 74 29 3b |TextRow(|R.Next);|
|00000f60| 0d 0a 09 7d 09 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |...}...}|....func|
|00000f70| 74 69 6f 6e 20 66 6c 6f | 61 74 20 44 72 61 77 54 |tion flo|at DrawT|
|00000f80| 65 78 74 4c 69 6e 65 28 | 43 61 6e 76 61 73 20 43 |extLine(|Canvas C|
|00000f90| 2c 20 55 57 69 6e 64 6f | 77 44 79 6e 61 6d 69 63 |, UWindo|wDynamic|
|00000fa0| 54 65 78 74 52 6f 77 20 | 4c 2c 20 66 6c 6f 61 74 |TextRow |L, float|
|00000fb0| 20 59 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 66 | Y)..{..|.local f|
|00000fc0| 6c 6f 61 74 20 58 2c 20 | 57 2c 20 48 2c 20 4d 6f |loat X, |W, H, Mo|
|00000fd0| 75 73 65 58 2c 20 4d 6f | 75 73 65 59 3b 0d 0a 09 |useX, Mo|useY;...|
|00000fe0| 6c 6f 63 61 6c 20 48 54 | 4d 4c 53 74 79 6c 65 20 |local HT|MLStyle |
|00000ff0| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 3b 0d 0a 09 |CurrentS|tyle;...|
|00001000| 6c 6f 63 61 6c 20 66 6c | 6f 61 74 20 52 6f 77 48 |local fl|oat RowH|
|00001010| 65 69 67 68 74 3b 0d 0a | 09 6c 6f 63 61 6c 20 43 |eight;..|.local C|
|00001020| 6f 6c 6f 72 20 4f 6c 64 | 43 6f 6c 6f 72 3b 0d 0a |olor Old|Color;..|
|00001030| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 53 74 79 6c 65 |.local i|nt Style|
|00001040| 50 6f 73 2c 20 44 69 73 | 70 6c 61 79 50 6f 73 2c |Pos, Dis|playPos,|
|00001050| 20 69 3b 0d 0a 09 6c 6f | 63 61 6c 20 73 74 72 69 | i;...lo|cal stri|
|00001060| 6e 67 20 53 3b 0d 0a 0d | 0a 09 52 6f 77 48 65 69 |ng S;...|..RowHei|
|00001070| 67 68 74 20 3d 20 30 3b | 0d 0a 0d 0a 09 43 75 72 |ght = 0;|.....Cur|
|00001080| 72 65 6e 74 53 74 79 6c | 65 20 3d 20 55 57 69 6e |rentStyl|e = UWin|
|00001090| 64 6f 77 48 54 4d 4c 54 | 65 78 74 52 6f 77 28 4c |dowHTMLT|extRow(L|
|000010a0| 29 2e 53 74 61 72 74 53 | 74 79 6c 65 3b 0d 0a 09 |).StartS|tyle;...|
|000010b0| 69 66 28 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |if(Curre|ntStyle.|
|000010c0| 62 43 65 6e 74 65 72 29 | 0d 0a 09 7b 0d 0a 09 09 |bCenter)|...{....|
|000010d0| 57 20 3d 20 43 61 6c 63 | 48 54 4d 4c 54 65 78 74 |W = Calc|HTMLText|
|000010e0| 57 69 64 74 68 28 43 2c | 20 4c 2e 54 65 78 74 2c |Width(C,| L.Text,|
|000010f0| 20 43 75 72 72 65 6e 74 | 53 74 79 6c 65 29 3b 0d | Current|Style);.|
|00001100| 0a 09 09 69 66 28 56 65 | 72 74 53 42 2e 62 57 69 |...if(Ve|rtSB.bWi|
|00001110| 6e 64 6f 77 56 69 73 69 | 62 6c 65 29 0d 0a 09 09 |ndowVisi|ble)....|
|00001120| 09 58 20 3d 20 69 6e 74 | 28 28 28 57 69 6e 57 69 |.X = int|(((WinWi|
|00001130| 64 74 68 20 2d 20 56 65 | 72 74 53 42 2e 57 69 6e |dth - Ve|rtSB.Win|
|00001140| 57 69 64 74 68 29 20 2d | 20 57 29 20 2f 20 32 29 |Width) -| W) / 2)|
|00001150| 3b 0d 0a 09 09 65 6c 73 | 65 0d 0a 09 09 09 58 20 |;....els|e.....X |
|00001160| 3d 20 69 6e 74 28 28 57 | 69 6e 57 69 64 74 68 20 |= int((W|inWidth |
|00001170| 2d 20 57 29 20 2f 20 32 | 29 3b 0d 0a 09 7d 0d 0a |- W) / 2|);...}..|
|00001180| 09 65 6c 73 65 0d 0a 09 | 09 58 20 3d 20 32 3b 0d |.else...|.X = 2;.|
|00001190| 0a 0d 0a 09 69 66 28 47 | 65 74 45 6e 74 72 79 4c |....if(G|etEntryL|
|000011a0| 65 76 65 6c 28 29 2e 54 | 69 6d 65 53 65 63 6f 6e |evel().T|imeSecon|
|000011b0| 64 73 20 3e 20 4c 61 73 | 74 42 6c 69 6e 6b 54 69 |ds > Las|tBlinkTi|
|000011c0| 6d 65 20 2b 20 30 2e 35 | 29 0d 0a 09 7b 0d 0a 09 |me + 0.5|)...{...|
|000011d0| 09 62 53 68 6f 77 42 6c | 69 6e 6b 20 3d 20 21 62 |.bShowBl|ink = !b|
|000011e0| 53 68 6f 77 42 6c 69 6e | 6b 3b 0d 0a 09 09 4c 61 |ShowBlin|k;....La|
|000011f0| 73 74 42 6c 69 6e 6b 54 | 69 6d 65 20 3d 20 47 65 |stBlinkT|ime = Ge|
|00001200| 74 45 6e 74 72 79 4c 65 | 76 65 6c 28 29 2e 54 69 |tEntryLe|vel().Ti|
|00001210| 6d 65 53 65 63 6f 6e 64 | 73 3b 0d 0a 09 7d 0d 0a |meSecond|s;...}..|
|00001220| 0d 0a 09 69 66 28 55 57 | 69 6e 64 6f 77 48 54 4d |...if(UW|indowHTM|
|00001230| 4c 54 65 78 74 52 6f 77 | 28 4c 29 2e 44 69 73 70 |LTextRow|(L).Disp|
|00001240| 6c 61 79 53 74 72 69 6e | 67 20 3d 3d 20 22 22 29 |layStrin|g == "")|
|00001250| 0d 0a 09 09 53 65 74 43 | 61 6e 76 61 73 53 74 79 |....SetC|anvasSty|
|00001260| 6c 65 28 43 2c 20 43 75 | 72 72 65 6e 74 53 74 79 |le(C, Cu|rrentSty|
|00001270| 6c 65 29 3b 0d 0a 09 65 | 6c 73 65 0d 0a 09 7b 0d |le);...e|lse...{.|
|00001280| 0a 09 09 77 68 69 6c 65 | 28 44 69 73 70 6c 61 79 |...while|(Display|
|00001290| 50 6f 73 20 3c 20 4c 65 | 6e 28 55 57 69 6e 64 6f |Pos < Le|n(UWindo|
|000012a0| 77 48 54 4d 4c 54 65 78 | 74 52 6f 77 28 4c 29 2e |wHTMLTex|tRow(L).|
|000012b0| 44 69 73 70 6c 61 79 53 | 74 72 69 6e 67 29 29 0d |DisplayS|tring)).|
|000012c0| 0a 09 09 7b 0d 0a 09 09 | 09 69 20 3d 20 52 65 61 |...{....|.i = Rea|
|000012d0| 64 53 74 79 6c 65 54 65 | 78 74 28 55 57 69 6e 64 |dStyleTe|xt(UWind|
|000012e0| 6f 77 48 54 4d 4c 54 65 | 78 74 52 6f 77 28 4c 29 |owHTMLTe|xtRow(L)|
|000012f0| 2e 53 74 79 6c 65 53 74 | 72 69 6e 67 2c 20 53 74 |.StyleSt|ring, St|
|00001300| 79 6c 65 50 6f 73 2c 20 | 43 75 72 72 65 6e 74 53 |ylePos, |CurrentS|
|00001310| 74 79 6c 65 29 3b 0d 0a | 09 09 09 53 20 3d 20 4d |tyle);..|...S = M|
|00001320| 69 64 28 55 57 69 6e 64 | 6f 77 48 54 4d 4c 54 65 |id(UWind|owHTMLTe|
|00001330| 78 74 52 6f 77 28 4c 29 | 2e 44 69 73 70 6c 61 79 |xtRow(L)|.Display|
|00001340| 53 74 72 69 6e 67 2c 20 | 44 69 73 70 6c 61 79 50 |String, |DisplayP|
|00001350| 6f 73 2c 20 69 29 3b 0d | 0a 09 09 09 44 69 73 70 |os, i);.|....Disp|
|00001360| 6c 61 79 50 6f 73 20 2b | 3d 20 69 3b 09 09 09 09 |layPos +|= i;....|
|00001370| 09 0d 0a 09 09 09 53 65 | 74 43 61 6e 76 61 73 53 |......Se|tCanvasS|
|00001380| 74 79 6c 65 28 43 2c 20 | 43 75 72 72 65 6e 74 53 |tyle(C, |CurrentS|
|00001390| 74 79 6c 65 29 3b 0d 0a | 0d 0a 09 09 09 54 65 78 |tyle);..|.....Tex|
|000013a0| 74 41 72 65 61 54 65 78 | 74 53 69 7a 65 28 43 2c |tAreaTex|tSize(C,|
|000013b0| 20 53 2c 20 57 2c 20 48 | 29 3b 0d 0a 09 09 09 69 | S, W, H|);.....i|
|000013c0| 66 28 48 20 3e 20 52 6f | 77 48 65 69 67 68 74 29 |f(H > Ro|wHeight)|
|000013d0| 0d 0a 09 09 09 09 52 6f | 77 48 65 69 67 68 74 20 |......Ro|wHeight |
|000013e0| 3d 20 48 3b 0d 0a 0d 0a | 09 09 09 69 66 28 43 75 |= H;....|...if(Cu|
|000013f0| 72 72 65 6e 74 53 74 79 | 6c 65 2e 62 4c 69 6e 6b |rrentSty|le.bLink|
|00001400| 29 0d 0a 09 09 09 7b 0d | 0a 09 09 09 09 47 65 74 |).....{.|.....Get|
|00001410| 4d 6f 75 73 65 58 59 28 | 4d 6f 75 73 65 58 2c 20 |MouseXY(|MouseX, |
|00001420| 4d 6f 75 73 65 59 29 3b | 0d 0a 09 09 09 09 69 66 |MouseY);|......if|
|00001430| 28 58 20 3c 20 4d 6f 75 | 73 65 58 20 26 26 20 58 |(X < Mou|seX && X|
|00001440| 20 2b 20 57 20 3e 20 4d | 6f 75 73 65 58 20 26 26 | + W > M|ouseX &&|
|00001450| 20 59 20 3c 20 4d 6f 75 | 73 65 59 20 26 26 20 59 | Y < Mou|seY && Y|
|00001460| 20 2b 20 48 20 3e 20 4d | 6f 75 73 65 59 29 0d 0a | + H > M|ouseY)..|
|00001470| 09 09 09 09 7b 0d 0a 09 | 09 09 09 09 43 75 72 73 |....{...|....Curs|
|00001480| 6f 72 20 3d 20 52 6f 6f | 74 2e 48 61 6e 64 43 75 |or = Roo|t.HandCu|
|00001490| 72 73 6f 72 3b 0d 0a 09 | 09 09 09 09 4f 76 65 72 |rsor;...|....Over|
|000014a0| 55 52 4c 28 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |URL(Curr|entStyle|
|000014b0| 2e 4c 69 6e 6b 44 65 73 | 74 69 6e 61 74 69 6f 6e |.LinkDes|tination|
|000014c0| 29 3b 0d 0a 0d 0a 09 09 | 09 09 09 69 66 28 62 4d |);......|...if(bM|
|000014d0| 6f 75 73 65 44 6f 77 6e | 20 7c 7c 20 62 52 65 6c |ouseDown| || bRel|
|000014e0| 65 61 73 65 64 29 0d 0a | 09 09 09 09 09 7b 0d 0a |eased)..|.....{..|
|000014f0| 09 09 09 09 09 09 69 66 | 28 62 52 65 6c 65 61 73 |......if|(bReleas|
|00001500| 65 64 29 0d 0a 09 09 09 | 09 09 09 7b 0d 0a 09 09 |ed).....|...{....|
|00001510| 09 09 09 09 09 50 72 6f | 63 65 73 73 55 52 4c 28 |.....Pro|cessURL(|
|00001520| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 2e 4c 69 6e |CurrentS|tyle.Lin|
|00001530| 6b 44 65 73 74 69 6e 61 | 74 69 6f 6e 29 3b 0d 0a |kDestina|tion);..|
|00001540| 09 09 09 09 09 09 09 62 | 52 65 6c 65 61 73 65 64 |.......b|Released|
|00001550| 20 3d 20 46 61 6c 73 65 | 3b 0d 0a 09 09 09 09 09 | = False|;.......|
|00001560| 09 7d 0d 0a 09 09 09 09 | 09 09 65 6c 73 65 0d 0a |.}......|..else..|
|00001570| 09 09 09 09 09 09 09 43 | 2e 44 72 61 77 43 6f 6c |.......C|.DrawCol|
|00001580| 6f 72 20 3d 20 41 4c 69 | 6e 6b 43 6f 6c 6f 72 3b |or = ALi|nkColor;|
|00001590| 0d 0a 09 09 09 09 09 7d | 0d 0a 09 09 09 09 7d 0d |.......}|......}.|
|000015a0| 0a 09 09 09 7d 0d 0a 0d | 0a 09 09 09 69 66 28 43 |....}...|....if(C|
|000015b0| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 42 47 43 6f |urrentSt|yle.BGCo|
|000015c0| 6c 6f 72 20 21 3d 20 42 | 47 43 6f 6c 6f 72 29 0d |lor != B|GColor).|
|000015d0| 0a 09 09 09 7b 09 0d 0a | 09 09 09 09 4f 6c 64 43 |....{...|....OldC|
|000015e0| 6f 6c 6f 72 20 3d 20 43 | 2e 44 72 61 77 43 6f 6c |olor = C|.DrawCol|
|000015f0| 6f 72 3b 0d 0a 09 09 09 | 09 43 2e 44 72 61 77 43 |or;.....|.C.DrawC|
|00001600| 6f 6c 6f 72 20 3d 20 43 | 75 72 72 65 6e 74 53 74 |olor = C|urrentSt|
|00001610| 79 6c 65 2e 42 47 43 6f | 6c 6f 72 3b 0d 0a 09 09 |yle.BGCo|lor;....|
|00001620| 09 09 44 72 61 77 53 74 | 72 65 74 63 68 65 64 54 |..DrawSt|retchedT|
|00001630| 65 78 74 75 72 65 28 43 | 2c 20 58 2c 20 59 2c 20 |exture(C|, X, Y, |
|00001640| 57 2c 20 48 2c 20 54 65 | 78 74 75 72 65 27 57 68 |W, H, Te|xture'Wh|
|00001650| 69 74 65 54 65 78 74 75 | 72 65 27 29 3b 0d 0a 09 |iteTextu|re');...|
|00001660| 09 09 09 43 2e 44 72 61 | 77 43 6f 6c 6f 72 20 3d |...C.Dra|wColor =|
|00001670| 20 4f 6c 64 43 6f 6c 6f | 72 3b 0d 0a 09 09 09 7d | OldColo|r;.....}|
|00001680| 0d 0a 09 09 09 69 66 28 | 21 43 75 72 72 65 6e 74 |.....if(|!Current|
|00001690| 53 74 79 6c 65 2e 62 42 | 6c 69 6e 6b 20 7c 7c 20 |Style.bB|link || |
|000016a0| 62 53 68 6f 77 42 6c 69 | 6e 6b 29 0d 0a 09 09 09 |bShowBli|nk).....|
|000016b0| 09 54 65 78 74 41 72 65 | 61 43 6c 69 70 54 65 78 |.TextAre|aClipTex|
|000016c0| 74 28 43 2c 20 58 2c 20 | 59 2c 20 53 29 3b 0d 0a |t(C, X, |Y, S);..|
|000016d0| 09 09 09 69 66 28 43 75 | 72 72 65 6e 74 53 74 79 |...if(Cu|rrentSty|
|000016e0| 6c 65 2e 62 4c 69 6e 6b | 20 7c 7c 20 43 75 72 72 |le.bLink| || Curr|
|000016f0| 65 6e 74 53 74 79 6c 65 | 2e 62 55 6e 64 65 72 6c |entStyle|.bUnderl|
|00001700| 69 6e 65 29 0d 0a 09 09 | 09 09 44 72 61 77 53 74 |ine)....|..DrawSt|
|00001710| 72 65 74 63 68 65 64 54 | 65 78 74 75 72 65 28 43 |retchedT|exture(C|
|00001720| 2c 20 58 2c 20 59 2b 48 | 2d 31 2c 20 57 2c 20 31 |, X, Y+H|-1, W, 1|
|00001730| 2c 20 54 65 78 74 75 72 | 65 27 57 68 69 74 65 54 |, Textur|e'WhiteT|
|00001740| 65 78 74 75 72 65 27 29 | 3b 0d 0a 0d 0a 09 09 09 |exture')|;.......|
|00001750| 58 20 2b 3d 20 57 3b 0d | 0a 09 09 7d 0d 0a 09 7d |X += W;.|...}...}|
|00001760| 0d 0a 09 69 66 28 52 6f | 77 48 65 69 67 68 74 20 |...if(Ro|wHeight |
|00001770| 3d 3d 20 30 29 0d 0a 09 | 09 54 65 78 74 41 72 65 |== 0)...|.TextAre|
|00001780| 61 54 65 78 74 53 69 7a | 65 28 43 2c 20 22 41 22 |aTextSiz|e(C, "A"|
|00001790| 2c 20 57 2c 20 52 6f 77 | 48 65 69 67 68 74 29 3b |, W, Row|Height);|
|000017a0| 0d 0a 0d 0a 09 72 65 74 | 75 72 6e 20 52 6f 77 48 |.....ret|urn RowH|
|000017b0| 65 69 67 68 74 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |eight;..|}....fun|
|000017c0| 63 74 69 6f 6e 20 55 57 | 69 6e 64 6f 77 44 79 6e |ction UW|indowDyn|
|000017d0| 61 6d 69 63 54 65 78 74 | 52 6f 77 20 53 70 6c 69 |amicText|Row Spli|
|000017e0| 74 52 6f 77 41 74 28 55 | 57 69 6e 64 6f 77 44 79 |tRowAt(U|WindowDy|
|000017f0| 6e 61 6d 69 63 54 65 78 | 74 52 6f 77 20 4c 2c 20 |namicTex|tRow L, |
|00001800| 69 6e 74 20 53 70 6c 69 | 74 50 6f 73 29 0d 0a 7b |int Spli|tPos)..{|
|00001810| 0d 0a 09 6c 6f 63 61 6c | 20 55 57 69 6e 64 6f 77 |...local| UWindow|
|00001820| 44 79 6e 61 6d 69 63 54 | 65 78 74 52 6f 77 20 4e |DynamicT|extRow N|
|00001830| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 48 54 4d 4c 53 74 |;...loca|l HTMLSt|
|00001840| 79 6c 65 20 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |yle Curr|entStyle|
|00001850| 3b 0d 0a 0d 0a 09 4e 20 | 3d 20 53 75 70 65 72 2e |;.....N |= Super.|
|00001860| 53 70 6c 69 74 52 6f 77 | 41 74 28 4c 2c 20 53 70 |SplitRow|At(L, Sp|
|00001870| 6c 69 74 50 6f 73 29 3b | 0d 0a 0d 0a 09 2f 2f 20 |litPos);|.....// |
|00001880| 75 70 64 61 74 65 20 74 | 68 65 20 73 74 79 6c 65 |update t|he style|
|00001890| 20 62 79 20 70 72 6f 63 | 65 73 73 69 6e 67 20 66 | by proc|essing f|
|000018a0| 72 6f 6d 20 74 68 65 20 | 73 74 61 72 74 20 6f 66 |rom the |start of|
|000018b0| 20 4c 20 74 6f 20 74 68 | 65 20 73 70 6c 69 74 20 | L to th|e split |
|000018c0| 70 6f 73 69 74 69 6f 6e | 2e 0d 0a 09 55 57 69 6e |position|....UWin|
|000018d0| 64 6f 77 48 54 4d 4c 54 | 65 78 74 52 6f 77 28 4e |dowHTMLT|extRow(N|
|000018e0| 29 2e 45 6e 64 53 74 79 | 6c 65 20 3d 20 55 57 69 |).EndSty|le = UWi|
|000018f0| 6e 64 6f 77 48 54 4d 4c | 54 65 78 74 52 6f 77 28 |ndowHTML|TextRow(|
|00001900| 4c 29 2e 45 6e 64 53 74 | 79 6c 65 3b 0d 0a 09 43 |L).EndSt|yle;...C|
|00001910| 75 72 72 65 6e 74 53 74 | 79 6c 65 20 3d 20 55 57 |urrentSt|yle = UW|
|00001920| 69 6e 64 6f 77 48 54 4d | 4c 54 65 78 74 52 6f 77 |indowHTM|LTextRow|
|00001930| 28 4c 29 2e 53 74 61 72 | 74 53 74 79 6c 65 3b 0d |(L).Star|tStyle;.|
|00001940| 0a 09 48 54 4d 4c 55 70 | 64 61 74 65 53 74 79 6c |..HTMLUp|dateStyl|
|00001950| 65 28 4c 2e 54 65 78 74 | 2c 20 43 75 72 72 65 6e |e(L.Text|, Curren|
|00001960| 74 53 74 79 6c 65 29 3b | 0d 0a 09 55 57 69 6e 64 |tStyle);|...UWind|
|00001970| 6f 77 48 54 4d 4c 54 65 | 78 74 52 6f 77 28 4c 29 |owHTMLTe|xtRow(L)|
|00001980| 2e 45 6e 64 53 74 79 6c | 65 20 3d 20 43 75 72 72 |.EndStyl|e = Curr|
|00001990| 65 6e 74 53 74 79 6c 65 | 3b 0d 0a 09 55 57 69 6e |entStyle|;...UWin|
|000019a0| 64 6f 77 48 54 4d 4c 54 | 65 78 74 52 6f 77 28 4e |dowHTMLT|extRow(N|
|000019b0| 29 2e 53 74 61 72 74 53 | 74 79 6c 65 20 3d 20 43 |).StartS|tyle = C|
|000019c0| 75 72 72 65 6e 74 53 74 | 79 6c 65 3b 0d 0a 0d 0a |urrentSt|yle;....|
|000019d0| 09 72 65 74 75 72 6e 20 | 4e 3b 0d 0a 7d 0d 0a 0d |.return |N;..}...|
|000019e0| 0a 66 75 6e 63 74 69 6f | 6e 20 52 65 6d 6f 76 65 |.functio|n Remove|
|000019f0| 57 72 61 70 28 55 57 69 | 6e 64 6f 77 44 79 6e 61 |Wrap(UWi|ndowDyna|
|00001a00| 6d 69 63 54 65 78 74 52 | 6f 77 20 4c 29 0d 0a 7b |micTextR|ow L)..{|
|00001a10| 0d 0a 09 6c 6f 63 61 6c | 20 55 57 69 6e 64 6f 77 |...local| UWindow|
|00001a20| 44 79 6e 61 6d 69 63 54 | 65 78 74 52 6f 77 20 4e |DynamicT|extRow N|
|00001a30| 3b 0d 0a 0d 0a 09 2f 2f | 20 63 6f 70 79 20 66 69 |;.....//| copy fi|
|00001a40| 6e 61 6c 20 65 6e 64 73 | 74 79 6c 65 20 74 6f 20 |nal ends|tyle to |
|00001a50| 63 75 72 72 65 6e 74 20 | 72 6f 77 0d 0a 09 4e 20 |current |row...N |
|00001a60| 3d 20 55 57 69 6e 64 6f | 77 44 79 6e 61 6d 69 63 |= UWindo|wDynamic|
|00001a70| 54 65 78 74 52 6f 77 28 | 4c 2e 4e 65 78 74 29 3b |TextRow(|L.Next);|
|00001a80| 0d 0a 09 77 68 69 6c 65 | 28 4e 20 21 3d 20 4e 6f |...while|(N != No|
|00001a90| 6e 65 20 26 26 20 4e 2e | 57 72 61 70 50 61 72 65 |ne && N.|WrapPare|
|00001aa0| 6e 74 20 3d 3d 20 4c 29 | 0d 0a 09 7b 0d 0a 09 09 |nt == L)|...{....|
|00001ab0| 55 57 69 6e 64 6f 77 48 | 54 4d 4c 54 65 78 74 52 |UWindowH|TMLTextR|
|00001ac0| 6f 77 28 4c 29 2e 45 6e | 64 53 74 79 6c 65 20 3d |ow(L).En|dStyle =|
|00001ad0| 20 55 57 69 6e 64 6f 77 | 48 54 4d 4c 54 65 78 74 | UWindow|HTMLText|
|00001ae0| 52 6f 77 28 4e 29 2e 45 | 6e 64 53 74 79 6c 65 3b |Row(N).E|ndStyle;|
|00001af0| 0d 0a 09 09 4e 20 3d 20 | 55 57 69 6e 64 6f 77 44 |....N = |UWindowD|
|00001b00| 79 6e 61 6d 69 63 54 65 | 78 74 52 6f 77 28 4e 2e |ynamicTe|xtRow(N.|
|00001b10| 4e 65 78 74 29 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 53 |Next);..|.}.....S|
|00001b20| 75 70 65 72 2e 52 65 6d | 6f 76 65 57 72 61 70 28 |uper.Rem|oveWrap(|
|00001b30| 4c 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |L);..}..|..functi|
|00001b40| 6f 6e 20 69 6e 74 20 47 | 65 74 57 72 61 70 50 6f |on int G|etWrapPo|
|00001b50| 73 28 43 61 6e 76 61 73 | 20 43 2c 20 55 57 69 6e |s(Canvas| C, UWin|
|00001b60| 64 6f 77 44 79 6e 61 6d | 69 63 54 65 78 74 52 6f |dowDynam|icTextRo|
|00001b70| 77 20 4c 2c 20 66 6c 6f | 61 74 20 4d 61 78 57 69 |w L, flo|at MaxWi|
|00001b80| 64 74 68 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |dth)..{.|..local |
|00001b90| 66 6c 6f 61 74 20 57 2c | 20 4c 69 6e 65 57 69 64 |float W,| LineWid|
|00001ba0| 74 68 2c 20 4e 65 78 74 | 57 6f 72 64 57 69 64 74 |th, Next|WordWidt|
|00001bb0| 68 3b 0d 0a 09 6c 6f 63 | 61 6c 20 73 74 72 69 6e |h;...loc|al strin|
|00001bc0| 67 20 49 6e 70 75 74 2c | 20 4e 65 78 74 57 6f 72 |g Input,| NextWor|
|00001bd0| 64 3b 0d 0a 09 6c 6f 63 | 61 6c 20 69 6e 74 20 57 |d;...loc|al int W|
|00001be0| 6f 72 64 73 54 68 69 73 | 52 6f 77 2c 20 57 72 61 |ordsThis|Row, Wra|
|00001bf0| 70 50 6f 73 3b 0d 0a 09 | 6c 6f 63 61 6c 20 48 54 |pPos;...|local HT|
|00001c00| 4d 4c 53 74 79 6c 65 20 | 43 75 72 72 65 6e 74 53 |MLStyle |CurrentS|
|00001c10| 74 79 6c 65 3b 0d 0a 0d | 0a 09 43 75 72 72 65 6e |tyle;...|..Curren|
|00001c20| 74 53 74 79 6c 65 20 3d | 20 55 57 69 6e 64 6f 77 |tStyle =| UWindow|
|00001c30| 48 54 4d 4c 54 65 78 74 | 52 6f 77 28 4c 29 2e 53 |HTMLText|Row(L).S|
|00001c40| 74 61 72 74 53 74 79 6c | 65 3b 0d 0a 0d 0a 09 2f |tartStyl|e;...../|
|00001c50| 2f 20 71 75 69 63 6b 20 | 63 68 65 63 6b 0d 0a 09 |/ quick |check...|
|00001c60| 69 66 28 43 61 6c 63 48 | 54 4d 4c 54 65 78 74 57 |if(CalcH|TMLTextW|
|00001c70| 69 64 74 68 28 43 2c 20 | 4c 2e 54 65 78 74 2c 20 |idth(C, |L.Text, |
|00001c80| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 29 20 3c 3d |CurrentS|tyle) <=|
|00001c90| 20 4d 61 78 57 69 64 74 | 68 29 0d 0a 09 09 72 65 | MaxWidt|h)....re|
|00001ca0| 74 75 72 6e 20 2d 31 3b | 0d 0a 0d 0a 09 49 6e 70 |turn -1;|.....Inp|
|00001cb0| 75 74 20 3d 20 4c 2e 54 | 65 78 74 3b 0d 0a 09 57 |ut = L.T|ext;...W|
|00001cc0| 6f 72 64 73 54 68 69 73 | 52 6f 77 20 3d 20 30 3b |ordsThis|Row = 0;|
|00001cd0| 0d 0a 09 4c 69 6e 65 57 | 69 64 74 68 20 3d 20 30 |...LineW|idth = 0|
|00001ce0| 3b 0d 0a 09 57 72 61 70 | 50 6f 73 20 3d 20 30 3b |;...Wrap|Pos = 0;|
|00001cf0| 0d 0a 09 4e 65 78 74 57 | 6f 72 64 20 3d 20 22 22 |...NextW|ord = ""|
|00001d00| 3b 0d 0a 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |;...Curr|entStyle|
|00001d10| 20 3d 20 55 57 69 6e 64 | 6f 77 48 54 4d 4c 54 65 | = UWind|owHTMLTe|
|00001d20| 78 74 52 6f 77 28 4c 29 | 2e 53 74 61 72 74 53 74 |xtRow(L)|.StartSt|
|00001d30| 79 6c 65 3b 0d 0a 0d 0a | 09 77 68 69 6c 65 28 49 |yle;....|.while(I|
|00001d40| 6e 70 75 74 20 21 3d 20 | 22 22 20 7c 7c 20 4e 65 |nput != |"" || Ne|
|00001d50| 78 74 57 6f 72 64 20 21 | 3d 20 22 22 29 0d 0a 09 |xtWord !|= "")...|
|00001d60| 7b 0d 0a 09 09 69 66 28 | 4e 65 78 74 57 6f 72 64 |{....if(|NextWord|
|00001d70| 20 3d 3d 20 22 22 29 0d | 0a 09 09 7b 0d 0a 09 09 | == "").|...{....|
|00001d80| 09 52 65 6d 6f 76 65 4e | 65 78 74 57 6f 72 64 28 |.RemoveN|extWord(|
|00001d90| 49 6e 70 75 74 2c 20 4e | 65 78 74 57 6f 72 64 29 |Input, N|extWord)|
|00001da0| 3b 0d 0a 09 09 09 4e 65 | 78 74 57 6f 72 64 57 69 |;.....Ne|xtWordWi|
|00001db0| 64 74 68 20 3d 20 43 61 | 6c 63 48 54 4d 4c 54 65 |dth = Ca|lcHTMLTe|
|00001dc0| 78 74 57 69 64 74 68 28 | 43 2c 20 4e 65 78 74 57 |xtWidth(|C, NextW|
|00001dd0| 6f 72 64 2c 20 43 75 72 | 72 65 6e 74 53 74 79 6c |ord, Cur|rentStyl|
|00001de0| 65 29 3b 0d 0a 09 09 7d | 0d 0a 09 09 69 66 28 57 |e);....}|....if(W|
|00001df0| 6f 72 64 73 54 68 69 73 | 52 6f 77 20 3e 20 30 20 |ordsThis|Row > 0 |
|00001e00| 26 26 20 4c 69 6e 65 57 | 69 64 74 68 20 2b 20 4e |&& LineW|idth + N|
|00001e10| 65 78 74 57 6f 72 64 57 | 69 64 74 68 20 3e 20 4d |extWordW|idth > M|
|00001e20| 61 78 57 69 64 74 68 29 | 0d 0a 09 09 7b 0d 0a 09 |axWidth)|....{...|
|00001e30| 09 09 72 65 74 75 72 6e | 20 57 72 61 70 50 6f 73 |..return| WrapPos|
|00001e40| 3b 0d 0a 09 09 7d 0d 0a | 09 09 65 6c 73 65 0d 0a |;....}..|..else..|
|00001e50| 09 09 7b 0d 0a 09 09 09 | 57 72 61 70 50 6f 73 20 |..{.....|WrapPos |
|00001e60| 2b 3d 20 4c 65 6e 28 4e | 65 78 74 57 6f 72 64 29 |+= Len(N|extWord)|
|00001e70| 3b 0d 0a 09 09 09 4c 69 | 6e 65 57 69 64 74 68 20 |;.....Li|neWidth |
|00001e80| 2b 3d 20 4e 65 78 74 57 | 6f 72 64 57 69 64 74 68 |+= NextW|ordWidth|
|00001e90| 3b 0d 0a 09 09 09 4e 65 | 78 74 57 6f 72 64 20 3d |;.....Ne|xtWord =|
|00001ea0| 20 22 22 3b 0d 0a 09 09 | 09 57 6f 72 64 73 54 68 | "";....|.WordsTh|
|00001eb0| 69 73 52 6f 77 2b 2b 3b | 0d 0a 09 09 7d 0d 0a 09 |isRow++;|....}...|
|00001ec0| 7d 0d 0a 09 72 65 74 75 | 72 6e 20 2d 31 3b 0d 0a |}...retu|rn -1;..|
|00001ed0| 7d 0d 0a 0d 0a 2f 2f 20 | 46 69 6e 64 20 74 68 65 |}....// |Find the|
|00001ee0| 20 6e 65 78 74 20 77 6f | 72 64 20 2d 20 62 75 74 | next wo|rd - but|
|00001ef0| 20 64 6f 6e 27 74 20 73 | 70 6c 69 74 20 75 70 20 | don't s|plit up |
|00001f00| 48 54 4d 4c 20 74 61 67 | 73 2e 0d 0a 66 75 6e 63 |HTML tag|s...func|
|00001f10| 74 69 6f 6e 20 52 65 6d | 6f 76 65 4e 65 78 74 57 |tion Rem|oveNextW|
|00001f20| 6f 72 64 28 6f 75 74 20 | 73 74 72 69 6e 67 20 54 |ord(out |string T|
|00001f30| 65 78 74 2c 20 6f 75 74 | 20 73 74 72 69 6e 67 20 |ext, out| string |
|00001f40| 4e 65 78 74 57 6f 72 64 | 29 0d 0a 7b 0d 0a 09 6c |NextWord|)..{...l|
|00001f50| 6f 63 61 6c 20 69 6e 74 | 20 69 3b 0d 0a 09 6c 6f |ocal int| i;...lo|
|00001f60| 63 61 6c 20 62 6f 6f 6c | 20 62 49 6e 73 69 64 65 |cal bool| bInside|
|00001f70| 54 61 67 3b 0d 0a 09 6c | 6f 63 61 6c 20 73 74 72 |Tag;...l|ocal str|
|00001f80| 69 6e 67 20 43 68 3b 0d | 0a 09 0d 0a 09 62 49 6e |ing Ch;.|.....bIn|
|00001f90| 73 69 64 65 54 61 67 20 | 3d 20 46 61 6c 73 65 3b |sideTag |= False;|
|00001fa0| 0d 0a 0d 0a 09 66 6f 72 | 28 69 3d 30 3b 69 3c 4c |.....for|(i=0;i<L|
|00001fb0| 65 6e 28 54 65 78 74 29 | 3b 69 2b 2b 29 0d 0a 09 |en(Text)|;i++)...|
|00001fc0| 7b 0d 0a 09 09 43 68 20 | 3d 20 4d 69 64 28 54 65 |{....Ch |= Mid(Te|
|00001fd0| 78 74 2c 20 69 2c 20 31 | 29 3b 0d 0a 09 09 69 66 |xt, i, 1|);....if|
|00001fe0| 28 43 68 20 3d 3d 20 22 | 3e 22 29 0d 0a 09 09 09 |(Ch == "|>").....|
|00001ff0| 62 49 6e 73 69 64 65 54 | 61 67 20 3d 20 46 61 6c |bInsideT|ag = Fal|
|00002000| 73 65 3b 0d 0a 09 09 69 | 66 28 43 68 20 3d 3d 20 |se;....i|f(Ch == |
|00002010| 22 3c 22 29 0d 0a 09 09 | 09 62 49 6e 73 69 64 65 |"<")....|.bInside|
|00002020| 54 61 67 20 3d 20 54 72 | 75 65 3b 0d 0a 09 09 69 |Tag = Tr|ue;....i|
|00002030| 66 28 43 68 20 3d 3d 20 | 22 20 22 20 26 26 20 21 |f(Ch == |" " && !|
|00002040| 62 49 6e 73 69 64 65 54 | 61 67 29 0d 0a 09 09 09 |bInsideT|ag).....|
|00002050| 62 72 65 61 6b 3b 0d 0a | 09 7d 0d 0a 09 77 68 69 |break;..|.}...whi|
|00002060| 6c 65 28 4d 69 64 28 54 | 65 78 74 2c 20 69 2c 20 |le(Mid(T|ext, i, |
|00002070| 31 29 20 3d 3d 20 22 20 | 22 29 0d 0a 09 09 69 2b |1) == " |")....i+|
|00002080| 2b 3b 09 0d 0a 09 4e 65 | 78 74 57 6f 72 64 20 3d |+;....Ne|xtWord =|
|00002090| 20 4c 65 66 74 28 54 65 | 78 74 2c 20 69 29 3b 0d | Left(Te|xt, i);.|
|000020a0| 0a 09 54 65 78 74 20 3d | 20 4d 69 64 28 54 65 78 |..Text =| Mid(Tex|
|000020b0| 74 2c 20 69 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |t, i);..|}....fun|
|000020c0| 63 74 69 6f 6e 20 55 57 | 69 6e 64 6f 77 44 79 6e |ction UW|indowDyn|
|000020d0| 61 6d 69 63 54 65 78 74 | 52 6f 77 20 41 64 64 54 |amicText|Row AddT|
|000020e0| 65 78 74 28 73 74 72 69 | 6e 67 20 4e 65 77 4c 69 |ext(stri|ng NewLi|
|000020f0| 6e 65 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 73 |ne)..{..|.local s|
|00002100| 74 72 69 6e 67 20 49 6e | 70 75 74 2c 20 4f 75 74 |tring In|put, Out|
|00002110| 70 75 74 2c 20 4c 65 66 | 74 54 65 78 74 2c 20 52 |put, Lef|tText, R|
|00002120| 69 67 68 74 54 65 78 74 | 2c 20 48 54 4d 4c 2c 20 |ightText|, HTML, |
|00002130| 54 65 6d 70 3b 0d 0a 09 | 6c 6f 63 61 6c 20 69 6e |Temp;...|local in|
|00002140| 74 20 69 3b 0d 0a 09 6c | 6f 63 61 6c 20 55 57 69 |t i;...l|ocal UWi|
|00002150| 6e 64 6f 77 44 79 6e 61 | 6d 69 63 54 65 78 74 52 |ndowDyna|micTextR|
|00002160| 6f 77 20 4c 3b 0d 0a 09 | 6c 6f 63 61 6c 20 48 54 |ow L;...|local HT|
|00002170| 4d 4c 53 74 79 6c 65 20 | 43 75 72 72 65 6e 74 53 |MLStyle |CurrentS|
|00002180| 74 79 6c 65 2c 20 53 74 | 61 72 74 53 74 79 6c 65 |tyle, St|artStyle|
|00002190| 3b 0d 0a 0d 0a 09 69 66 | 28 4c 69 73 74 2e 4c 61 |;.....if|(List.La|
|000021a0| 73 74 20 3d 3d 20 4c 69 | 73 74 29 0d 0a 09 7b 0d |st == Li|st)...{.|
|000021b0| 0a 09 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |...Curre|ntStyle.|
|000021c0| 42 75 6c 6c 65 74 4c 65 | 76 65 6c 20 3d 20 30 3b |BulletLe|vel = 0;|
|000021d0| 0d 0a 09 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |....Curr|entStyle|
|000021e0| 2e 4c 69 6e 6b 44 65 73 | 74 69 6e 61 74 69 6f 6e |.LinkDes|tination|
|000021f0| 20 3d 20 22 22 3b 0d 0a | 09 09 43 75 72 72 65 6e | = "";..|..Curren|
|00002200| 74 53 74 79 6c 65 2e 54 | 65 78 74 43 6f 6c 6f 72 |tStyle.T|extColor|
|00002210| 20 3d 20 54 65 78 74 43 | 6f 6c 6f 72 3b 0d 0a 09 | = TextC|olor;...|
|00002220| 09 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 42 47 |.Current|Style.BG|
|00002230| 43 6f 6c 6f 72 20 3d 20 | 42 47 43 6f 6c 6f 72 3b |Color = |BGColor;|
|00002240| 0d 0a 09 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |....Curr|entStyle|
|00002250| 2e 62 43 65 6e 74 65 72 | 20 3d 20 62 48 43 65 6e |.bCenter| = bHCen|
|00002260| 74 65 72 3b 0d 0a 09 09 | 43 75 72 72 65 6e 74 53 |ter;....|CurrentS|
|00002270| 74 79 6c 65 2e 62 4c 69 | 6e 6b 20 3d 20 46 61 6c |tyle.bLi|nk = Fal|
|00002280| 73 65 3b 0d 0a 09 09 43 | 75 72 72 65 6e 74 53 74 |se;....C|urrentSt|
|00002290| 79 6c 65 2e 62 55 6e 64 | 65 72 6c 69 6e 65 20 3d |yle.bUnd|erline =|
|000022a0| 20 46 61 6c 73 65 3b 0d | 0a 09 09 43 75 72 72 65 | False;.|...Curre|
|000022b0| 6e 74 53 74 79 6c 65 2e | 62 4e 6f 42 52 20 3d 20 |ntStyle.|bNoBR = |
|000022c0| 46 61 6c 73 65 3b 0d 0a | 09 09 43 75 72 72 65 6e |False;..|..Curren|
|000022d0| 74 53 74 79 6c 65 2e 62 | 48 65 61 64 69 6e 67 20 |tStyle.b|Heading |
|000022e0| 3d 20 46 61 6c 73 65 3b | 0d 0a 09 09 43 75 72 72 |= False;|....Curr|
|000022f0| 65 6e 74 53 74 79 6c 65 | 2e 62 42 6f 6c 64 20 3d |entStyle|.bBold =|
|00002300| 20 46 61 6c 73 65 3b 0d | 0a 09 09 43 75 72 72 65 | False;.|...Curre|
|00002310| 6e 74 53 74 79 6c 65 2e | 62 42 6c 69 6e 6b 20 3d |ntStyle.|bBlink =|
|00002320| 20 46 61 6c 73 65 3b 0d | 0a 09 7d 0d 0a 09 65 6c | False;.|..}...el|
|00002330| 73 65 0d 0a 09 09 43 75 | 72 72 65 6e 74 53 74 79 |se....Cu|rrentSty|
|00002340| 6c 65 20 3d 20 55 57 69 | 6e 64 6f 77 48 54 4d 4c |le = UWi|ndowHTML|
|00002350| 54 65 78 74 52 6f 77 28 | 4c 69 73 74 2e 4c 61 73 |TextRow(|List.Las|
|00002360| 74 29 2e 45 6e 64 53 74 | 79 6c 65 3b 0d 0a 09 53 |t).EndSt|yle;...S|
|00002370| 74 61 72 74 53 74 79 6c | 65 20 3d 20 43 75 72 72 |tartStyl|e = Curr|
|00002380| 65 6e 74 53 74 79 6c 65 | 3b 0d 0a 0d 0a 09 2f 2f |entStyle|;.....//|
|00002390| 20 63 6f 6e 76 65 72 74 | 20 5c 5c 6e 27 73 20 2d | convert| \\n's -|
|000023a0| 3e 20 3c 62 72 3e 27 73 | 0d 0a 09 69 20 3d 20 49 |> <br>'s|...i = I|
|000023b0| 6e 53 74 72 28 4e 65 77 | 4c 69 6e 65 2c 20 22 5c |nStr(New|Line, "\|
|000023c0| 5c 6e 22 29 3b 0d 0a 09 | 77 68 69 6c 65 28 69 20 |\n");...|while(i |
|000023d0| 21 3d 20 2d 31 29 0d 0a | 09 7b 0d 0a 09 09 4e 65 |!= -1)..|.{....Ne|
|000023e0| 77 4c 69 6e 65 20 3d 20 | 4c 65 66 74 28 4e 65 77 |wLine = |Left(New|
|000023f0| 4c 69 6e 65 2c 20 69 29 | 20 24 20 22 3c 62 72 3e |Line, i)| $ "<br>|
|00002400| 22 20 24 20 4d 69 64 28 | 4e 65 77 4c 69 6e 65 2c |" $ Mid(|NewLine,|
|00002410| 20 69 20 2b 20 32 29 3b | 0d 0a 09 09 69 20 3d 20 | i + 2);|....i = |
|00002420| 49 6e 53 74 72 28 4e 65 | 77 4c 69 6e 65 2c 20 22 |InStr(Ne|wLine, "|
|00002430| 5c 5c 6e 22 29 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 49 |\\n");..|.}.....I|
|00002440| 6e 70 75 74 20 3d 20 4e | 65 77 4c 69 6e 65 3b 0d |nput = N|ewLine;.|
|00002450| 0a 09 4f 75 74 70 75 74 | 20 3d 20 22 22 3b 0d 0a |..Output| = "";..|
|00002460| 09 77 68 69 6c 65 28 49 | 6e 70 75 74 20 21 3d 20 |.while(I|nput != |
|00002470| 22 22 29 0d 0a 09 7b 0d | 0a 09 09 50 61 72 73 65 |"")...{.|...Parse|
|00002480| 48 54 4d 4c 28 49 6e 70 | 75 74 2c 20 4c 65 66 74 |HTML(Inp|ut, Left|
|00002490| 54 65 78 74 2c 20 48 54 | 4d 4c 2c 20 52 69 67 68 |Text, HT|ML, Righ|
|000024a0| 74 54 65 78 74 29 3b 0d | 0a 09 09 0d 0a 09 09 73 |tText);.|.......s|
|000024b0| 77 69 74 63 68 28 47 65 | 74 54 61 67 28 48 54 4d |witch(Ge|tTag(HTM|
|000024c0| 4c 29 29 0d 0a 09 09 7b | 0d 0a 09 09 2f 2f 20 6d |L))....{|....// m|
|000024d0| 75 6c 74 69 6c 69 6e 65 | 20 48 54 4d 4c 20 74 61 |ultiline| HTML ta|
|000024e0| 67 73 0d 0a 09 09 63 61 | 73 65 20 22 50 22 3a 0d |gs....ca|se "P":.|
|000024f0| 0a 09 09 09 69 66 28 28 | 4f 75 74 70 75 74 20 24 |....if((|Output $|
|00002500| 20 4c 65 66 74 54 65 78 | 74 29 20 21 3d 20 22 22 | LeftTex|t) != ""|
|00002510| 29 0d 0a 09 09 09 7b 0d | 0a 09 09 09 09 4c 20 3d |).....{.|.....L =|
|00002520| 20 53 75 70 65 72 2e 41 | 64 64 54 65 78 74 28 4f | Super.A|ddText(O|
|00002530| 75 74 70 75 74 20 24 20 | 4c 65 66 74 54 65 78 74 |utput $ |LeftText|
|00002540| 29 3b 0d 0a 09 09 09 09 | 4f 75 74 70 75 74 20 3d |);......|Output =|
|00002550| 20 22 22 3b 0d 0a 09 09 | 09 09 55 57 69 6e 64 6f | "";....|..UWindo|
|00002560| 77 48 54 4d 4c 54 65 78 | 74 52 6f 77 28 4c 29 2e |wHTMLTex|tRow(L).|
|00002570| 53 74 61 72 74 53 74 79 | 6c 65 20 3d 20 53 74 61 |StartSty|le = Sta|
|00002580| 72 74 53 74 79 6c 65 3b | 0d 0a 09 09 09 09 55 57 |rtStyle;|......UW|
|00002590| 69 6e 64 6f 77 48 54 4d | 4c 54 65 78 74 52 6f 77 |indowHTM|LTextRow|
|000025a0| 28 4c 29 2e 45 6e 64 53 | 74 79 6c 65 20 3d 20 43 |(L).EndS|tyle = C|
|000025b0| 75 72 72 65 6e 74 53 74 | 79 6c 65 3b 0d 0a 09 09 |urrentSt|yle;....|
|000025c0| 09 7d 0d 0a 09 09 09 53 | 74 61 72 74 53 74 79 6c |.}.....S|tartStyl|
|000025d0| 65 20 3d 20 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |e = Curr|entStyle|
|000025e0| 3b 0d 0a 09 09 09 4c 20 | 3d 20 53 75 70 65 72 2e |;.....L |= Super.|
|000025f0| 41 64 64 54 65 78 74 28 | 22 22 29 3b 0d 0a 09 09 |AddText(|"");....|
|00002600| 09 55 57 69 6e 64 6f 77 | 48 54 4d 4c 54 65 78 74 |.UWindow|HTMLText|
|00002610| 52 6f 77 28 4c 29 2e 53 | 74 61 72 74 53 74 79 6c |Row(L).S|tartStyl|
|00002620| 65 20 3d 20 53 74 61 72 | 74 53 74 79 6c 65 3b 0d |e = Star|tStyle;.|
|00002630| 0a 09 09 09 55 57 69 6e | 64 6f 77 48 54 4d 4c 54 |....UWin|dowHTMLT|
|00002640| 65 78 74 52 6f 77 28 4c | 29 2e 45 6e 64 53 74 79 |extRow(L|).EndSty|
|00002650| 6c 65 20 3d 20 43 75 72 | 72 65 6e 74 53 74 79 6c |le = Cur|rentStyl|
|00002660| 65 3b 0d 0a 09 09 09 62 | 72 65 61 6b 3b 0d 0a 09 |e;.....b|reak;...|
|00002670| 09 63 61 73 65 20 22 42 | 52 22 3a 0d 0a 09 09 09 |.case "B|R":.....|
|00002680| 4c 20 3d 20 53 75 70 65 | 72 2e 41 64 64 54 65 78 |L = Supe|r.AddTex|
|00002690| 74 28 4f 75 74 70 75 74 | 20 24 20 4c 65 66 74 54 |t(Output| $ LeftT|
|000026a0| 65 78 74 29 3b 0d 0a 09 | 09 09 4f 75 74 70 75 74 |ext);...|..Output|
|000026b0| 20 3d 20 22 22 3b 0d 0a | 09 09 09 55 57 69 6e 64 | = "";..|...UWind|
|000026c0| 6f 77 48 54 4d 4c 54 65 | 78 74 52 6f 77 28 4c 29 |owHTMLTe|xtRow(L)|
|000026d0| 2e 53 74 61 72 74 53 74 | 79 6c 65 20 3d 20 53 74 |.StartSt|yle = St|
|000026e0| 61 72 74 53 74 79 6c 65 | 3b 0d 0a 09 09 09 55 57 |artStyle|;.....UW|
|000026f0| 69 6e 64 6f 77 48 54 4d | 4c 54 65 78 74 52 6f 77 |indowHTM|LTextRow|
|00002700| 28 4c 29 2e 45 6e 64 53 | 74 79 6c 65 20 3d 20 43 |(L).EndS|tyle = C|
|00002710| 75 72 72 65 6e 74 53 74 | 79 6c 65 3b 0d 0a 09 09 |urrentSt|yle;....|
|00002720| 09 53 74 61 72 74 53 74 | 79 6c 65 20 3d 20 43 75 |.StartSt|yle = Cu|
|00002730| 72 72 65 6e 74 53 74 79 | 6c 65 3b 0d 0a 09 09 09 |rrentSty|le;.....|
|00002740| 62 72 65 61 6b 3b 0d 0a | 09 09 63 61 73 65 20 22 |break;..|..case "|
|00002750| 42 4f 44 59 22 3a 0d 0a | 09 09 09 54 65 6d 70 20 |BODY":..|...Temp |
|00002760| 3d 20 47 65 74 4f 70 74 | 69 6f 6e 28 48 54 4d 4c |= GetOpt|ion(HTML|
|00002770| 2c 20 22 42 47 43 4f 4c | 4f 52 3d 22 29 3b 0d 0a |, "BGCOL|OR=");..|
|00002780| 09 09 09 69 66 28 54 65 | 6d 70 20 21 3d 20 22 22 |...if(Te|mp != ""|
|00002790| 29 0d 0a 09 09 09 7b 0d | 0a 09 09 09 09 42 47 43 |).....{.|.....BGC|
|000027a0| 6f 6c 6f 72 20 3d 20 50 | 61 72 73 65 43 6f 6c 6f |olor = P|arseColo|
|000027b0| 72 28 54 65 6d 70 29 3b | 0d 0a 09 09 09 09 43 75 |r(Temp);|......Cu|
|000027c0| 72 72 65 6e 74 53 74 79 | 6c 65 2e 42 47 43 6f 6c |rrentSty|le.BGCol|
|000027d0| 6f 72 20 3d 20 42 47 43 | 6f 6c 6f 72 3b 0d 0a 09 |or = BGC|olor;...|
|000027e0| 09 09 09 53 74 61 72 74 | 53 74 79 6c 65 2e 42 47 |...Start|Style.BG|
|000027f0| 43 6f 6c 6f 72 20 3d 20 | 42 47 43 6f 6c 6f 72 3b |Color = |BGColor;|
|00002800| 0d 0a 09 09 09 7d 0d 0a | 0d 0a 09 09 09 54 65 6d |.....}..|.....Tem|
|00002810| 70 20 3d 20 47 65 74 4f | 70 74 69 6f 6e 28 48 54 |p = GetO|ption(HT|
|00002820| 4d 4c 2c 20 22 4c 49 4e | 4b 3d 22 29 3b 0d 0a 09 |ML, "LIN|K=");...|
|00002830| 09 09 69 66 28 54 65 6d | 70 20 21 3d 20 22 22 29 |..if(Tem|p != "")|
|00002840| 0d 0a 09 09 09 09 4c 69 | 6e 6b 43 6f 6c 6f 72 20 |......Li|nkColor |
|00002850| 3d 20 50 61 72 73 65 43 | 6f 6c 6f 72 28 54 65 6d |= ParseC|olor(Tem|
|00002860| 70 29 3b 0d 0a 0d 0a 09 | 09 09 54 65 6d 70 20 3d |p);.....|..Temp =|
|00002870| 20 47 65 74 4f 70 74 69 | 6f 6e 28 48 54 4d 4c 2c | GetOpti|on(HTML,|
|00002880| 20 22 41 4c 49 4e 4b 3d | 22 29 3b 0d 0a 09 09 09 | "ALINK=|");.....|
|00002890| 69 66 28 54 65 6d 70 20 | 21 3d 20 22 22 29 0d 0a |if(Temp |!= "")..|
|000028a0| 09 09 09 09 41 4c 69 6e | 6b 43 6f 6c 6f 72 20 3d |....ALin|kColor =|
|000028b0| 20 50 61 72 73 65 43 6f | 6c 6f 72 28 54 65 6d 70 | ParseCo|lor(Temp|
|000028c0| 29 3b 0d 0a 0d 0a 09 09 | 09 54 65 6d 70 20 3d 20 |);......|.Temp = |
|000028d0| 47 65 74 4f 70 74 69 6f | 6e 28 48 54 4d 4c 2c 20 |GetOptio|n(HTML, |
|000028e0| 22 54 45 58 54 3d 22 29 | 3b 0d 0a 09 09 09 69 66 |"TEXT=")|;.....if|
|000028f0| 28 54 65 6d 70 20 21 3d | 20 22 22 29 0d 0a 09 09 |(Temp !=| "")....|
|00002900| 09 7b 0d 0a 09 09 09 09 | 54 65 78 74 43 6f 6c 6f |.{......|TextColo|
|00002910| 72 20 3d 20 50 61 72 73 | 65 43 6f 6c 6f 72 28 54 |r = Pars|eColor(T|
|00002920| 65 6d 70 29 3b 0d 0a 09 | 09 09 09 43 75 72 72 65 |emp);...|...Curre|
|00002930| 6e 74 53 74 79 6c 65 2e | 54 65 78 74 43 6f 6c 6f |ntStyle.|TextColo|
|00002940| 72 20 3d 20 54 65 78 74 | 43 6f 6c 6f 72 3b 0d 0a |r = Text|Color;..|
|00002950| 09 09 09 7d 0d 0a 09 09 | 09 4f 75 74 70 75 74 20 |...}....|.Output |
|00002960| 3d 20 4f 75 74 70 75 74 | 20 24 20 4c 65 66 74 54 |= Output| $ LeftT|
|00002970| 65 78 74 3b 0d 0a 09 09 | 09 62 72 65 61 6b 3b 0d |ext;....|.break;.|
|00002980| 0a 09 09 63 61 73 65 20 | 22 43 45 4e 54 45 52 22 |...case |"CENTER"|
|00002990| 3a 0d 0a 09 09 09 69 66 | 28 28 4f 75 74 70 75 74 |:.....if|((Output|
|000029a0| 20 24 20 4c 65 66 74 54 | 65 78 74 29 20 21 3d 20 | $ LeftT|ext) != |
|000029b0| 22 22 29 0d 0a 09 09 09 | 7b 0d 0a 09 09 09 09 4c |"").....|{......L|
|000029c0| 20 3d 20 53 75 70 65 72 | 2e 41 64 64 54 65 78 74 | = Super|.AddText|
|000029d0| 28 4f 75 74 70 75 74 20 | 24 20 4c 65 66 74 54 65 |(Output |$ LeftTe|
|000029e0| 78 74 29 3b 0d 0a 09 09 | 09 09 4f 75 74 70 75 74 |xt);....|..Output|
|000029f0| 20 3d 20 22 22 3b 0d 0a | 09 09 09 09 55 57 69 6e | = "";..|....UWin|
|00002a00| 64 6f 77 48 54 4d 4c 54 | 65 78 74 52 6f 77 28 4c |dowHTMLT|extRow(L|
|00002a10| 29 2e 53 74 61 72 74 53 | 74 79 6c 65 20 3d 20 53 |).StartS|tyle = S|
|00002a20| 74 61 72 74 53 74 79 6c | 65 3b 0d 0a 09 09 09 09 |tartStyl|e;......|
|00002a30| 55 57 69 6e 64 6f 77 48 | 54 4d 4c 54 65 78 74 52 |UWindowH|TMLTextR|
|00002a40| 6f 77 28 4c 29 2e 45 6e | 64 53 74 79 6c 65 20 3d |ow(L).En|dStyle =|
|00002a50| 20 43 75 72 72 65 6e 74 | 53 74 79 6c 65 3b 0d 0a | Current|Style;..|
|00002a60| 09 09 09 7d 0d 0a 09 09 | 09 43 75 72 72 65 6e 74 |...}....|.Current|
|00002a70| 53 74 79 6c 65 2e 62 43 | 65 6e 74 65 72 20 3d 20 |Style.bC|enter = |
|00002a80| 54 72 75 65 3b 0d 0a 09 | 09 09 53 74 61 72 74 53 |True;...|..StartS|
|00002a90| 74 79 6c 65 20 3d 20 43 | 75 72 72 65 6e 74 53 74 |tyle = C|urrentSt|
|00002aa0| 79 6c 65 3b 0d 0a 09 09 | 09 62 72 65 61 6b 3b 0d |yle;....|.break;.|
|00002ab0| 0a 09 09 63 61 73 65 20 | 22 2f 43 45 4e 54 45 52 |...case |"/CENTER|
|00002ac0| 22 3a 0d 0a 09 09 09 4c | 20 3d 20 53 75 70 65 72 |":.....L| = Super|
|00002ad0| 2e 41 64 64 54 65 78 74 | 28 4f 75 74 70 75 74 20 |.AddText|(Output |
|00002ae0| 24 20 4c 65 66 74 54 65 | 78 74 29 3b 0d 0a 09 09 |$ LeftTe|xt);....|
|00002af0| 09 4f 75 74 70 75 74 20 | 3d 20 22 22 3b 0d 0a 09 |.Output |= "";...|
|00002b00| 09 09 55 57 69 6e 64 6f | 77 48 54 4d 4c 54 65 78 |..UWindo|wHTMLTex|
|00002b10| 74 52 6f 77 28 4c 29 2e | 53 74 61 72 74 53 74 79 |tRow(L).|StartSty|
|00002b20| 6c 65 20 3d 20 53 74 61 | 72 74 53 74 79 6c 65 3b |le = Sta|rtStyle;|
|00002b30| 0d 0a 09 09 09 55 57 69 | 6e 64 6f 77 48 54 4d 4c |.....UWi|ndowHTML|
|00002b40| 54 65 78 74 52 6f 77 28 | 4c 29 2e 45 6e 64 53 74 |TextRow(|L).EndSt|
|00002b50| 79 6c 65 20 3d 20 43 75 | 72 72 65 6e 74 53 74 79 |yle = Cu|rrentSty|
|00002b60| 6c 65 3b 0d 0a 09 09 09 | 43 75 72 72 65 6e 74 53 |le;.....|CurrentS|
|00002b70| 74 79 6c 65 2e 62 43 65 | 6e 74 65 72 20 3d 20 46 |tyle.bCe|nter = F|
|00002b80| 61 6c 73 65 3b 0d 0a 09 | 09 09 53 74 61 72 74 53 |alse;...|..StartS|
|00002b90| 74 79 6c 65 20 3d 20 43 | 75 72 72 65 6e 74 53 74 |tyle = C|urrentSt|
|00002ba0| 79 6c 65 3b 0d 0a 09 09 | 09 62 72 65 61 6b 3b 09 |yle;....|.break;.|
|00002bb0| 09 09 0d 0a 09 09 2f 2f | 20 49 6e 6c 69 6e 65 20 |......//| Inline |
|00002bc0| 48 54 4d 4c 20 74 61 67 | 73 0d 0a 09 09 63 61 73 |HTML tag|s....cas|
|00002bd0| 65 20 22 48 31 22 3a 0d | 0a 09 09 09 69 66 28 28 |e "H1":.|....if((|
|00002be0| 4f 75 74 70 75 74 20 24 | 20 4c 65 66 74 54 65 78 |Output $| LeftTex|
|00002bf0| 74 29 20 21 3d 20 22 22 | 29 0d 0a 09 09 09 7b 0d |t) != ""|).....{.|
|00002c00| 0a 09 09 09 09 4c 20 3d | 20 53 75 70 65 72 2e 41 |.....L =| Super.A|
|00002c10| 64 64 54 65 78 74 28 4f | 75 74 70 75 74 20 24 20 |ddText(O|utput $ |
|00002c20| 4c 65 66 74 54 65 78 74 | 29 3b 0d 0a 09 09 09 09 |LeftText|);......|
|00002c30| 4f 75 74 70 75 74 20 3d | 20 22 22 3b 0d 0a 09 09 |Output =| "";....|
|00002c40| 09 09 55 57 69 6e 64 6f | 77 48 54 4d 4c 54 65 78 |..UWindo|wHTMLTex|
|00002c50| 74 52 6f 77 28 4c 29 2e | 53 74 61 72 74 53 74 79 |tRow(L).|StartSty|
|00002c60| 6c 65 20 3d 20 53 74 61 | 72 74 53 74 79 6c 65 3b |le = Sta|rtStyle;|
|00002c70| 0d 0a 09 09 09 09 55 57 | 69 6e 64 6f 77 48 54 4d |......UW|indowHTM|
|00002c80| 4c 54 65 78 74 52 6f 77 | 28 4c 29 2e 45 6e 64 53 |LTextRow|(L).EndS|
|00002c90| 74 79 6c 65 20 3d 20 43 | 75 72 72 65 6e 74 53 74 |tyle = C|urrentSt|
|00002ca0| 79 6c 65 3b 0d 0a 09 09 | 09 7d 0d 0a 09 09 09 43 |yle;....|.}.....C|
|00002cb0| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 62 48 65 61 |urrentSt|yle.bHea|
|00002cc0| 64 69 6e 67 20 3d 20 54 | 72 75 65 3b 0d 0a 09 09 |ding = T|rue;....|
|00002cd0| 09 53 74 61 72 74 53 74 | 79 6c 65 20 3d 20 43 75 |.StartSt|yle = Cu|
|00002ce0| 72 72 65 6e 74 53 74 79 | 6c 65 3b 0d 0a 09 09 09 |rrentSty|le;.....|
|00002cf0| 62 72 65 61 6b 3b 0d 0a | 09 09 63 61 73 65 20 22 |break;..|..case "|
|00002d00| 2f 48 31 22 3a 0d 0a 09 | 09 09 4c 20 3d 20 53 75 |/H1":...|..L = Su|
|00002d10| 70 65 72 2e 41 64 64 54 | 65 78 74 28 4f 75 74 70 |per.AddT|ext(Outp|
|00002d20| 75 74 20 24 20 4c 65 66 | 74 54 65 78 74 29 3b 0d |ut $ Lef|tText);.|
|00002d30| 0a 09 09 09 4f 75 74 70 | 75 74 20 3d 20 22 22 3b |....Outp|ut = "";|
|00002d40| 0d 0a 09 09 09 55 57 69 | 6e 64 6f 77 48 54 4d 4c |.....UWi|ndowHTML|
|00002d50| 54 65 78 74 52 6f 77 28 | 4c 29 2e 53 74 61 72 74 |TextRow(|L).Start|
|00002d60| 53 74 79 6c 65 20 3d 20 | 53 74 61 72 74 53 74 79 |Style = |StartSty|
|00002d70| 6c 65 3b 0d 0a 09 09 09 | 55 57 69 6e 64 6f 77 48 |le;.....|UWindowH|
|00002d80| 54 4d 4c 54 65 78 74 52 | 6f 77 28 4c 29 2e 45 6e |TMLTextR|ow(L).En|
|00002d90| 64 53 74 79 6c 65 20 3d | 20 43 75 72 72 65 6e 74 |dStyle =| Current|
|00002da0| 53 74 79 6c 65 3b 0d 0a | 09 09 09 43 75 72 72 65 |Style;..|...Curre|
|00002db0| 6e 74 53 74 79 6c 65 2e | 62 48 65 61 64 69 6e 67 |ntStyle.|bHeading|
|00002dc0| 20 3d 20 46 61 6c 73 65 | 3b 0d 0a 09 09 09 53 74 | = False|;.....St|
|00002dd0| 61 72 74 53 74 79 6c 65 | 20 3d 20 43 75 72 72 65 |artStyle| = Curre|
|00002de0| 6e 74 53 74 79 6c 65 3b | 0d 0a 09 09 09 62 72 65 |ntStyle;|.....bre|
|00002df0| 61 6b 3b 09 09 09 0d 0a | 09 09 63 61 73 65 20 22 |ak;.....|..case "|
|00002e00| 46 4f 4e 54 22 3a 0d 0a | 09 09 09 4f 75 74 70 75 |FONT":..|...Outpu|
|00002e10| 74 20 3d 20 4f 75 74 70 | 75 74 20 24 20 4c 65 66 |t = Outp|ut $ Lef|
|00002e20| 74 54 65 78 74 20 24 20 | 48 54 4d 4c 3b 0d 0a 09 |tText $ |HTML;...|
|00002e30| 09 09 54 65 6d 70 20 3d | 20 47 65 74 4f 70 74 69 |..Temp =| GetOpti|
|00002e40| 6f 6e 28 48 54 4d 4c 2c | 20 22 43 4f 4c 4f 52 3d |on(HTML,| "COLOR=|
|00002e50| 22 29 3b 0d 0a 09 09 09 | 69 66 28 54 65 6d 70 20 |");.....|if(Temp |
|00002e60| 21 3d 20 22 22 29 0d 0a | 09 09 09 09 43 75 72 72 |!= "")..|....Curr|
|00002e70| 65 6e 74 53 74 79 6c 65 | 2e 54 65 78 74 43 6f 6c |entStyle|.TextCol|
|00002e80| 6f 72 20 3d 20 50 61 72 | 73 65 43 6f 6c 6f 72 28 |or = Par|seColor(|
|00002e90| 54 65 6d 70 29 3b 0d 0a | 09 09 09 54 65 6d 70 20 |Temp);..|...Temp |
|00002ea0| 3d 20 47 65 74 4f 70 74 | 69 6f 6e 28 48 54 4d 4c |= GetOpt|ion(HTML|
|00002eb0| 2c 20 22 42 47 43 4f 4c | 4f 52 3d 22 29 3b 0d 0a |, "BGCOL|OR=");..|
|00002ec0| 09 09 09 69 66 28 54 65 | 6d 70 20 21 3d 20 22 22 |...if(Te|mp != ""|
|00002ed0| 29 0d 0a 09 09 09 09 43 | 75 72 72 65 6e 74 53 74 |)......C|urrentSt|
|00002ee0| 79 6c 65 2e 42 47 43 6f | 6c 6f 72 20 3d 20 50 61 |yle.BGCo|lor = Pa|
|00002ef0| 72 73 65 43 6f 6c 6f 72 | 28 54 65 6d 70 29 3b 0d |rseColor|(Temp);.|
|00002f00| 0a 09 09 09 62 72 65 61 | 6b 3b 0d 0a 09 09 63 61 |....brea|k;....ca|
|00002f10| 73 65 20 22 2f 46 4f 4e | 54 22 3a 0d 0a 09 09 09 |se "/FON|T":.....|
|00002f20| 4f 75 74 70 75 74 20 3d | 20 4f 75 74 70 75 74 20 |Output =| Output |
|00002f30| 24 20 4c 65 66 74 54 65 | 78 74 20 24 20 48 54 4d |$ LeftTe|xt $ HTM|
|00002f40| 4c 3b 0d 0a 09 09 09 43 | 75 72 72 65 6e 74 53 74 |L;.....C|urrentSt|
|00002f50| 79 6c 65 2e 54 65 78 74 | 43 6f 6c 6f 72 20 3d 20 |yle.Text|Color = |
|00002f60| 54 65 78 74 43 6f 6c 6f | 72 3b 0d 0a 09 09 09 43 |TextColo|r;.....C|
|00002f70| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 42 47 43 6f |urrentSt|yle.BGCo|
|00002f80| 6c 6f 72 20 3d 20 42 47 | 43 6f 6c 6f 72 3b 0d 0a |lor = BG|Color;..|
|00002f90| 09 09 09 62 72 65 61 6b | 3b 0d 0a 09 09 63 61 73 |...break|;....cas|
|00002fa0| 65 20 22 42 22 3a 0d 0a | 09 09 09 4f 75 74 70 75 |e "B":..|...Outpu|
|00002fb0| 74 20 3d 20 4f 75 74 70 | 75 74 20 24 20 4c 65 66 |t = Outp|ut $ Lef|
|00002fc0| 74 54 65 78 74 20 24 20 | 48 54 4d 4c 3b 0d 0a 09 |tText $ |HTML;...|
|00002fd0| 09 09 43 75 72 72 65 6e | 74 53 74 79 6c 65 2e 62 |..Curren|tStyle.b|
|00002fe0| 42 6f 6c 64 20 3d 20 54 | 72 75 65 3b 0d 0a 09 09 |Bold = T|rue;....|
|00002ff0| 09 62 72 65 61 6b 3b 0d | 0a 09 09 63 61 73 65 20 |.break;.|...case |
|00003000| 22 2f 42 22 3a 0d 0a 09 | 09 09 4f 75 74 70 75 74 |"/B":...|..Output|
|00003010| 20 3d 20 4f 75 74 70 75 | 74 20 24 20 4c 65 66 74 | = Outpu|t $ Left|
|00003020| 54 65 78 74 20 24 20 48 | 54 4d 4c 3b 0d 0a 09 09 |Text $ H|TML;....|
|00003030| 09 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 62 42 |.Current|Style.bB|
|00003040| 6f 6c 64 20 3d 20 46 61 | 6c 73 65 3b 0d 0a 09 09 |old = Fa|lse;....|
|00003050| 09 62 72 65 61 6b 3b 0d | 0a 09 09 63 61 73 65 20 |.break;.|...case |
|00003060| 22 55 22 3a 0d 0a 09 09 | 09 4f 75 74 70 75 74 20 |"U":....|.Output |
|00003070| 3d 20 4f 75 74 70 75 74 | 20 24 20 4c 65 66 74 54 |= Output| $ LeftT|
|00003080| 65 78 74 20 24 20 48 54 | 4d 4c 3b 0d 0a 09 09 09 |ext $ HT|ML;.....|
|00003090| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 2e 62 55 6e |CurrentS|tyle.bUn|
|000030a0| 64 65 72 6c 69 6e 65 20 | 3d 20 54 72 75 65 3b 0d |derline |= True;.|
|000030b0| 0a 09 09 09 62 72 65 61 | 6b 3b 0d 0a 09 09 63 61 |....brea|k;....ca|
|000030c0| 73 65 20 22 2f 55 22 3a | 0d 0a 09 09 09 4f 75 74 |se "/U":|.....Out|
|000030d0| 70 75 74 20 3d 20 4f 75 | 74 70 75 74 20 24 20 4c |put = Ou|tput $ L|
|000030e0| 65 66 74 54 65 78 74 20 | 24 20 48 54 4d 4c 3b 0d |eftText |$ HTML;.|
|000030f0| 0a 09 09 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |....Curr|entStyle|
|00003100| 2e 62 55 6e 64 65 72 6c | 69 6e 65 20 3d 20 46 61 |.bUnderl|ine = Fa|
|00003110| 6c 73 65 3b 0d 0a 09 09 | 09 62 72 65 61 6b 3b 0d |lse;....|.break;.|
|00003120| 0a 09 09 63 61 73 65 20 | 22 41 22 3a 0d 0a 09 09 |...case |"A":....|
|00003130| 09 4f 75 74 70 75 74 20 | 3d 20 4f 75 74 70 75 74 |.Output |= Output|
|00003140| 20 24 20 4c 65 66 74 54 | 65 78 74 20 24 20 48 54 | $ LeftT|ext $ HT|
|00003150| 4d 4c 3b 0d 0a 09 09 09 | 43 75 72 72 65 6e 74 53 |ML;.....|CurrentS|
|00003160| 74 79 6c 65 2e 62 4c 69 | 6e 6b 20 3d 20 54 72 75 |tyle.bLi|nk = Tru|
|00003170| 65 3b 0d 0a 09 09 09 43 | 75 72 72 65 6e 74 53 74 |e;.....C|urrentSt|
|00003180| 79 6c 65 2e 4c 69 6e 6b | 44 65 73 74 69 6e 61 74 |yle.Link|Destinat|
|00003190| 69 6f 6e 20 3d 20 47 65 | 74 4f 70 74 69 6f 6e 28 |ion = Ge|tOption(|
|000031a0| 48 54 4d 4c 2c 20 22 48 | 52 45 46 3d 22 29 3b 0d |HTML, "H|REF=");.|
|000031b0| 0a 09 09 09 62 72 65 61 | 6b 3b 0d 0a 09 09 63 61 |....brea|k;....ca|
|000031c0| 73 65 20 22 2f 41 22 3a | 0d 0a 09 09 09 4f 75 74 |se "/A":|.....Out|
|000031d0| 70 75 74 20 3d 20 4f 75 | 74 70 75 74 20 24 20 4c |put = Ou|tput $ L|
|000031e0| 65 66 74 54 65 78 74 20 | 24 20 48 54 4d 4c 3b 0d |eftText |$ HTML;.|
|000031f0| 0a 09 09 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |....Curr|entStyle|
|00003200| 2e 62 4c 69 6e 6b 20 3d | 20 46 61 6c 73 65 3b 0d |.bLink =| False;.|
|00003210| 0a 09 09 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |....Curr|entStyle|
|00003220| 2e 4c 69 6e 6b 44 65 73 | 74 69 6e 61 74 69 6f 6e |.LinkDes|tination|
|00003230| 20 3d 20 22 22 3b 0d 0a | 09 09 09 62 72 65 61 6b | = "";..|...break|
|00003240| 3b 0d 0a 09 09 63 61 73 | 65 20 22 4e 4f 42 52 22 |;....cas|e "NOBR"|
|00003250| 3a 0d 0a 09 09 09 4f 75 | 74 70 75 74 20 3d 20 4f |:.....Ou|tput = O|
|00003260| 75 74 70 75 74 20 24 20 | 4c 65 66 74 54 65 78 74 |utput $ |LeftText|
|00003270| 20 24 20 48 54 4d 4c 3b | 0d 0a 09 09 09 43 75 72 | $ HTML;|.....Cur|
|00003280| 72 65 6e 74 53 74 79 6c | 65 2e 62 4e 6f 42 52 20 |rentStyl|e.bNoBR |
|00003290| 3d 20 54 72 75 65 3b 0d | 0a 09 09 09 62 72 65 61 |= True;.|....brea|
|000032a0| 6b 3b 0d 0a 09 09 63 61 | 73 65 20 22 2f 4e 4f 42 |k;....ca|se "/NOB|
|000032b0| 52 22 3a 0d 0a 09 09 09 | 4f 75 74 70 75 74 20 3d |R":.....|Output =|
|000032c0| 20 4f 75 74 70 75 74 20 | 24 20 4c 65 66 74 54 65 | Output |$ LeftTe|
|000032d0| 78 74 20 24 20 48 54 4d | 4c 3b 0d 0a 09 09 09 43 |xt $ HTM|L;.....C|
|000032e0| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 62 4e 6f 42 |urrentSt|yle.bNoB|
|000032f0| 52 20 3d 20 46 61 6c 73 | 65 3b 0d 0a 09 09 09 62 |R = Fals|e;.....b|
|00003300| 72 65 61 6b 3b 0d 0a 09 | 09 63 61 73 65 20 22 42 |reak;...|.case "B|
|00003310| 4c 49 4e 4b 22 3a 0d 0a | 09 09 09 4f 75 74 70 75 |LINK":..|...Outpu|
|00003320| 74 20 3d 20 4f 75 74 70 | 75 74 20 24 20 4c 65 66 |t = Outp|ut $ Lef|
|00003330| 74 54 65 78 74 20 24 20 | 48 54 4d 4c 3b 0d 0a 09 |tText $ |HTML;...|
|00003340| 09 09 43 75 72 72 65 6e | 74 53 74 79 6c 65 2e 62 |..Curren|tStyle.b|
|00003350| 42 6c 69 6e 6b 20 3d 20 | 54 72 75 65 3b 0d 0a 09 |Blink = |True;...|
|00003360| 09 09 62 72 65 61 6b 3b | 0d 0a 09 09 63 61 73 65 |..break;|....case|
|00003370| 20 22 2f 42 4c 49 4e 4b | 22 3a 0d 0a 09 09 09 4f | "/BLINK|":.....O|
|00003380| 75 74 70 75 74 20 3d 20 | 4f 75 74 70 75 74 20 24 |utput = |Output $|
|00003390| 20 4c 65 66 74 54 65 78 | 74 20 24 20 48 54 4d 4c | LeftTex|t $ HTML|
|000033a0| 3b 0d 0a 09 09 09 43 75 | 72 72 65 6e 74 53 74 79 |;.....Cu|rrentSty|
|000033b0| 6c 65 2e 62 42 6c 69 6e | 6b 20 3d 20 46 61 6c 73 |le.bBlin|k = Fals|
|000033c0| 65 3b 0d 0a 09 09 09 62 | 72 65 61 6b 3b 0d 0a 09 |e;.....b|reak;...|
|000033d0| 09 64 65 66 61 75 6c 74 | 3a 0d 0a 09 09 09 4f 75 |.default|:.....Ou|
|000033e0| 74 70 75 74 20 3d 20 4f | 75 74 70 75 74 20 24 20 |tput = O|utput $ |
|000033f0| 4c 65 66 74 54 65 78 74 | 3b 0d 0a 09 09 09 62 72 |LeftText|;.....br|
|00003400| 65 61 6b 3b 0d 0a 09 09 | 7d 0d 0a 09 09 49 6e 70 |eak;....|}....Inp|
|00003410| 75 74 20 3d 20 52 69 67 | 68 74 54 65 78 74 3b 0d |ut = Rig|htText;.|
|00003420| 0a 09 7d 0d 0a 0d 0a 09 | 4c 20 3d 20 53 75 70 65 |..}.....|L = Supe|
|00003430| 72 2e 41 64 64 54 65 78 | 74 28 4f 75 74 70 75 74 |r.AddTex|t(Output|
|00003440| 29 3b 0d 0a 09 55 57 69 | 6e 64 6f 77 48 54 4d 4c |);...UWi|ndowHTML|
|00003450| 54 65 78 74 52 6f 77 28 | 4c 29 2e 53 74 61 72 74 |TextRow(|L).Start|
|00003460| 53 74 79 6c 65 20 3d 20 | 53 74 61 72 74 53 74 79 |Style = |StartSty|
|00003470| 6c 65 3b 0d 0a 09 55 57 | 69 6e 64 6f 77 48 54 4d |le;...UW|indowHTM|
|00003480| 4c 54 65 78 74 52 6f 77 | 28 4c 29 2e 45 6e 64 53 |LTextRow|(L).EndS|
|00003490| 74 79 6c 65 20 3d 20 43 | 75 72 72 65 6e 74 53 74 |tyle = C|urrentSt|
|000034a0| 79 6c 65 3b 0d 0a 0d 0a | 09 72 65 74 75 72 6e 20 |yle;....|.return |
|000034b0| 4c 3b 0d 0a 7d 0d 0a 0d | 0a 2f 2f 2f 2f 2f 2f 2f |L;..}...|.///////|
|000034c0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000034d0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000034e0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 0d 0a 2f 2f |////////|////..//|
|000034f0| 20 48 54 4d 4c 20 54 65 | 78 74 20 50 72 6f 63 65 | HTML Te|xt Proce|
|00003500| 73 73 69 6e 67 0d 0a 2f | 2f 2f 2f 2f 2f 2f 2f 2f |ssing../|////////|
|00003510| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00003520| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00003530| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 0d 0a 0d 0a 2f 2f |////////|//....//|
|00003540| 20 47 65 74 20 74 68 65 | 20 6e 65 78 74 20 48 54 | Get the| next HT|
|00003550| 4d 4c 20 74 61 67 2c 20 | 74 68 65 20 74 65 78 74 |ML tag, |the text|
|00003560| 20 62 65 66 6f 72 65 20 | 69 74 20 61 6e 64 20 65 | before |it and e|
|00003570| 76 65 72 74 68 69 6e 67 | 20 61 66 74 65 72 20 69 |verthing| after i|
|00003580| 74 2e 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 50 61 72 |t...func|tion Par|
|00003590| 73 65 48 54 4d 4c 28 73 | 74 72 69 6e 67 20 49 6e |seHTML(s|tring In|
|000035a0| 70 75 74 2c 20 6f 75 74 | 20 73 74 72 69 6e 67 20 |put, out| string |
|000035b0| 4c 65 66 74 54 65 78 74 | 2c 20 6f 75 74 20 73 74 |LeftText|, out st|
|000035c0| 72 69 6e 67 20 48 54 4d | 4c 2c 20 6f 75 74 20 73 |ring HTM|L, out s|
|000035d0| 74 72 69 6e 67 20 52 69 | 67 68 74 54 65 78 74 29 |tring Ri|ghtText)|
|000035e0| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 69 6e 74 20 |..{...lo|cal int |
|000035f0| 69 3b 0d 0a 09 0d 0a 09 | 69 20 3d 20 49 6e 53 74 |i;......|i = InSt|
|00003600| 72 28 49 6e 70 75 74 2c | 20 22 3c 22 29 3b 0d 0a |r(Input,| "<");..|
|00003610| 09 69 66 28 69 20 3d 3d | 20 2d 31 29 0d 0a 09 7b |.if(i ==| -1)...{|
|00003620| 0d 0a 09 09 4c 65 66 74 | 54 65 78 74 20 3d 20 49 |....Left|Text = I|
|00003630| 6e 70 75 74 3b 0d 0a 09 | 09 48 54 4d 4c 20 3d 20 |nput;...|.HTML = |
|00003640| 22 22 3b 0d 0a 09 09 52 | 69 67 68 74 54 65 78 74 |"";....R|ightText|
|00003650| 20 3d 20 22 22 3b 0d 0a | 09 09 72 65 74 75 72 6e | = "";..|..return|
|00003660| 3b 0d 0a 09 7d 0d 0a 0d | 0a 09 4c 65 66 74 54 65 |;...}...|..LeftTe|
|00003670| 78 74 20 3d 20 4c 65 66 | 74 28 49 6e 70 75 74 2c |xt = Lef|t(Input,|
|00003680| 20 69 29 3b 0d 0a 09 48 | 54 4d 4c 20 3d 20 4d 69 | i);...H|TML = Mi|
|00003690| 64 28 49 6e 70 75 74 2c | 20 69 29 3b 0d 0a 0d 0a |d(Input,| i);....|
|000036a0| 09 69 20 3d 20 49 6e 53 | 74 72 28 48 54 4d 4c 2c |.i = InS|tr(HTML,|
|000036b0| 20 22 3e 22 29 3b 0d 0a | 09 69 66 28 69 20 3d 3d | ">");..|.if(i ==|
|000036c0| 20 2d 31 29 0d 0a 09 7b | 0d 0a 09 09 52 69 67 68 | -1)...{|....Righ|
|000036d0| 74 54 65 78 74 20 3d 20 | 22 22 3b 0d 0a 09 09 72 |tText = |"";....r|
|000036e0| 65 74 75 72 6e 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 52 |eturn;..|.}.....R|
|000036f0| 69 67 68 74 54 65 78 74 | 20 3d 20 4d 69 64 28 48 |ightText| = Mid(H|
|00003700| 54 4d 4c 2c 20 69 2b 31 | 29 3b 0d 0a 09 48 54 4d |TML, i+1|);...HTM|
|00003710| 4c 20 3d 20 4c 65 66 74 | 28 48 54 4d 4c 2c 20 69 |L = Left|(HTML, i|
|00003720| 2b 31 29 3b 09 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |+1);...}|....func|
|00003730| 74 69 6f 6e 20 66 6c 6f | 61 74 20 43 61 6c 63 48 |tion flo|at CalcH|
|00003740| 54 4d 4c 54 65 78 74 57 | 69 64 74 68 28 43 61 6e |TMLTextW|idth(Can|
|00003750| 76 61 73 20 43 2c 20 73 | 74 72 69 6e 67 20 54 65 |vas C, s|tring Te|
|00003760| 78 74 2c 20 6f 75 74 20 | 48 54 4d 4c 53 74 79 6c |xt, out |HTMLStyl|
|00003770| 65 20 43 75 72 72 65 6e | 74 53 74 79 6c 65 29 0d |e Curren|tStyle).|
|00003780| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 73 74 72 69 6e |.{...loc|al strin|
|00003790| 67 20 49 6e 70 75 74 2c | 20 4c 65 66 74 54 65 78 |g Input,| LeftTex|
|000037a0| 74 2c 20 48 54 4d 4c 2c | 20 52 69 67 68 74 54 65 |t, HTML,| RightTe|
|000037b0| 78 74 3b 0d 0a 09 6c 6f | 63 61 6c 20 66 6c 6f 61 |xt;...lo|cal floa|
|000037c0| 74 20 57 2c 20 48 2c 20 | 57 69 64 74 68 3b 0d 0a |t W, H, |Width;..|
|000037d0| 0d 0a 09 57 69 64 74 68 | 20 3d 20 30 3b 0d 0a 09 |...Width| = 0;...|
|000037e0| 49 6e 70 75 74 20 3d 20 | 54 65 78 74 3b 0d 0a 09 |Input = |Text;...|
|000037f0| 77 68 69 6c 65 28 49 6e | 70 75 74 20 21 3d 20 22 |while(In|put != "|
|00003800| 22 29 0d 0a 09 7b 0d 0a | 09 09 50 61 72 73 65 48 |")...{..|..ParseH|
|00003810| 54 4d 4c 28 49 6e 70 75 | 74 2c 20 4c 65 66 74 54 |TML(Inpu|t, LeftT|
|00003820| 65 78 74 2c 20 48 54 4d | 4c 2c 20 52 69 67 68 74 |ext, HTM|L, Right|
|00003830| 54 65 78 74 29 3b 0d 0a | 0d 0a 09 09 53 65 74 43 |Text);..|....SetC|
|00003840| 61 6e 76 61 73 53 74 79 | 6c 65 28 43 2c 20 43 75 |anvasSty|le(C, Cu|
|00003850| 72 72 65 6e 74 53 74 79 | 6c 65 29 3b 0d 0a 09 09 |rrentSty|le);....|
|00003860| 54 65 78 74 41 72 65 61 | 54 65 78 74 53 69 7a 65 |TextArea|TextSize|
|00003870| 28 43 2c 20 4c 65 66 74 | 54 65 78 74 2c 20 57 2c |(C, Left|Text, W,|
|00003880| 20 48 29 3b 0d 0a 09 09 | 57 69 64 74 68 20 2b 3d | H);....|Width +=|
|00003890| 20 57 3b 0d 0a 09 09 09 | 09 09 0d 0a 09 09 50 72 | W;.....|......Pr|
|000038a0| 6f 63 65 73 73 49 6e 6c | 69 6e 65 48 54 4d 4c 28 |ocessInl|ineHTML(|
|000038b0| 48 54 4d 4c 2c 20 43 75 | 72 72 65 6e 74 53 74 79 |HTML, Cu|rrentSty|
|000038c0| 6c 65 29 3b 0d 0a 0d 0a | 09 09 49 6e 70 75 74 20 |le);....|..Input |
|000038d0| 3d 20 52 69 67 68 74 54 | 65 78 74 3b 0d 0a 09 7d |= RightT|ext;...}|
|000038e0| 0d 0a 0d 0a 09 72 65 74 | 75 72 6e 20 57 69 64 74 |.....ret|urn Widt|
|000038f0| 68 3b 0d 0a 7d 0d 0a 0d | 0a 2f 2f 20 55 70 64 61 |h;..}...|.// Upda|
|00003900| 74 65 20 43 75 72 72 65 | 6e 74 53 74 79 6c 65 20 |te Curre|ntStyle |
|00003910| 62 61 73 65 64 20 6f 6e | 20 74 68 65 20 63 6f 6e |based on| the con|
|00003920| 74 65 6e 74 73 20 6f 66 | 20 74 68 65 20 48 54 4d |tents of| the HTM|
|00003930| 4c 20 74 61 67 20 70 72 | 6f 76 69 64 65 64 0d 0a |L tag pr|ovided..|
|00003940| 66 75 6e 63 74 69 6f 6e | 20 50 72 6f 63 65 73 73 |function| Process|
|00003950| 49 6e 6c 69 6e 65 48 54 | 4d 4c 28 73 74 72 69 6e |InlineHT|ML(strin|
|00003960| 67 20 48 54 4d 4c 2c 20 | 6f 75 74 20 48 54 4d 4c |g HTML, |out HTML|
|00003970| 53 74 79 6c 65 20 43 75 | 72 72 65 6e 74 53 74 79 |Style Cu|rrentSty|
|00003980| 6c 65 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 73 |le)..{..|.local s|
|00003990| 74 72 69 6e 67 20 54 65 | 6d 70 3b 0d 0a 0d 0a 09 |tring Te|mp;.....|
|000039a0| 69 66 28 48 54 4d 4c 20 | 3d 3d 20 22 22 29 09 0d |if(HTML |== "")..|
|000039b0| 0a 09 09 72 65 74 75 72 | 6e 3b 0d 0a 0d 0a 09 73 |...retur|n;.....s|
|000039c0| 77 69 74 63 68 28 47 65 | 74 54 61 67 28 48 54 4d |witch(Ge|tTag(HTM|
|000039d0| 4c 29 29 0d 0a 09 7b 0d | 0a 09 63 61 73 65 20 22 |L))...{.|..case "|
|000039e0| 48 31 22 3a 0d 0a 09 09 | 43 75 72 72 65 6e 74 53 |H1":....|CurrentS|
|000039f0| 74 79 6c 65 2e 62 48 65 | 61 64 69 6e 67 20 3d 20 |tyle.bHe|ading = |
|00003a00| 54 72 75 65 3b 0d 0a 09 | 09 62 72 65 61 6b 3b 0d |True;...|.break;.|
|00003a10| 0a 09 63 61 73 65 20 22 | 2f 48 31 22 3a 0d 0a 09 |..case "|/H1":...|
|00003a20| 09 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 62 48 |.Current|Style.bH|
|00003a30| 65 61 64 69 6e 67 20 3d | 20 46 61 6c 73 65 3b 0d |eading =| False;.|
|00003a40| 0a 09 09 62 72 65 61 6b | 3b 09 09 09 0d 0a 09 63 |...break|;......c|
|00003a50| 61 73 65 20 22 46 4f 4e | 54 22 3a 0d 0a 09 09 54 |ase "FON|T":....T|
|00003a60| 65 6d 70 20 3d 20 47 65 | 74 4f 70 74 69 6f 6e 28 |emp = Ge|tOption(|
|00003a70| 48 54 4d 4c 2c 20 22 43 | 4f 4c 4f 52 3d 22 29 3b |HTML, "C|OLOR=");|
|00003a80| 0d 0a 09 09 69 66 28 54 | 65 6d 70 20 21 3d 20 22 |....if(T|emp != "|
|00003a90| 22 29 0d 0a 09 09 09 43 | 75 72 72 65 6e 74 53 74 |").....C|urrentSt|
|00003aa0| 79 6c 65 2e 54 65 78 74 | 43 6f 6c 6f 72 20 3d 20 |yle.Text|Color = |
|00003ab0| 50 61 72 73 65 43 6f 6c | 6f 72 28 54 65 6d 70 29 |ParseCol|or(Temp)|
|00003ac0| 3b 0d 0a 09 09 54 65 6d | 70 20 3d 20 47 65 74 4f |;....Tem|p = GetO|
|00003ad0| 70 74 69 6f 6e 28 48 54 | 4d 4c 2c 20 22 42 47 43 |ption(HT|ML, "BGC|
|00003ae0| 4f 4c 4f 52 3d 22 29 3b | 0d 0a 09 09 69 66 28 54 |OLOR=");|....if(T|
|00003af0| 65 6d 70 20 21 3d 20 22 | 22 29 0d 0a 09 09 09 43 |emp != "|").....C|
|00003b00| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 42 47 43 6f |urrentSt|yle.BGCo|
|00003b10| 6c 6f 72 20 3d 20 50 61 | 72 73 65 43 6f 6c 6f 72 |lor = Pa|rseColor|
|00003b20| 28 54 65 6d 70 29 3b 0d | 0a 09 09 62 72 65 61 6b |(Temp);.|...break|
|00003b30| 3b 0d 0a 09 63 61 73 65 | 20 22 2f 46 4f 4e 54 22 |;...case| "/FONT"|
|00003b40| 3a 0d 0a 09 09 43 75 72 | 72 65 6e 74 53 74 79 6c |:....Cur|rentStyl|
|00003b50| 65 2e 54 65 78 74 43 6f | 6c 6f 72 20 3d 20 54 65 |e.TextCo|lor = Te|
|00003b60| 78 74 43 6f 6c 6f 72 3b | 0d 0a 09 09 43 75 72 72 |xtColor;|....Curr|
|00003b70| 65 6e 74 53 74 79 6c 65 | 2e 42 47 43 6f 6c 6f 72 |entStyle|.BGColor|
|00003b80| 20 3d 20 42 47 43 6f 6c | 6f 72 3b 0d 0a 09 09 62 | = BGCol|or;....b|
|00003b90| 72 65 61 6b 3b 0d 0a 09 | 63 61 73 65 20 22 42 22 |reak;...|case "B"|
|00003ba0| 3a 0d 0a 09 09 43 75 72 | 72 65 6e 74 53 74 79 6c |:....Cur|rentStyl|
|00003bb0| 65 2e 62 42 6f 6c 64 20 | 3d 20 54 72 75 65 3b 0d |e.bBold |= True;.|
|00003bc0| 0a 09 09 62 72 65 61 6b | 3b 0d 0a 09 63 61 73 65 |...break|;...case|
|00003bd0| 20 22 2f 42 22 3a 0d 0a | 09 09 43 75 72 72 65 6e | "/B":..|..Curren|
|00003be0| 74 53 74 79 6c 65 2e 62 | 42 6f 6c 64 20 3d 20 46 |tStyle.b|Bold = F|
|00003bf0| 61 6c 73 65 3b 0d 0a 09 | 09 62 72 65 61 6b 3b 0d |alse;...|.break;.|
|00003c00| 0a 09 63 61 73 65 20 22 | 55 22 3a 0d 0a 09 09 43 |..case "|U":....C|
|00003c10| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 62 55 6e 64 |urrentSt|yle.bUnd|
|00003c20| 65 72 6c 69 6e 65 20 3d | 20 54 72 75 65 3b 0d 0a |erline =| True;..|
|00003c30| 09 09 62 72 65 61 6b 3b | 0d 0a 09 63 61 73 65 20 |..break;|...case |
|00003c40| 22 2f 55 22 3a 0d 0a 09 | 09 43 75 72 72 65 6e 74 |"/U":...|.Current|
|00003c50| 53 74 79 6c 65 2e 62 55 | 6e 64 65 72 6c 69 6e 65 |Style.bU|nderline|
|00003c60| 20 3d 20 46 61 6c 73 65 | 3b 0d 0a 09 09 62 72 65 | = False|;....bre|
|00003c70| 61 6b 3b 0d 0a 09 63 61 | 73 65 20 22 41 22 3a 0d |ak;...ca|se "A":.|
|00003c80| 0a 09 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |...Curre|ntStyle.|
|00003c90| 62 4c 69 6e 6b 20 3d 20 | 54 72 75 65 3b 0d 0a 09 |bLink = |True;...|
|00003ca0| 09 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 4c 69 |.Current|Style.Li|
|00003cb0| 6e 6b 44 65 73 74 69 6e | 61 74 69 6f 6e 20 3d 20 |nkDestin|ation = |
|00003cc0| 47 65 74 4f 70 74 69 6f | 6e 28 48 54 4d 4c 2c 20 |GetOptio|n(HTML, |
|00003cd0| 22 48 52 45 46 3d 22 29 | 3b 0d 0a 09 09 62 72 65 |"HREF=")|;....bre|
|00003ce0| 61 6b 3b 0d 0a 09 63 61 | 73 65 20 22 2f 41 22 3a |ak;...ca|se "/A":|
|00003cf0| 0d 0a 09 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |....Curr|entStyle|
|00003d00| 2e 62 4c 69 6e 6b 20 3d | 20 46 61 6c 73 65 3b 0d |.bLink =| False;.|
|00003d10| 0a 09 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |...Curre|ntStyle.|
|00003d20| 4c 69 6e 6b 44 65 73 74 | 69 6e 61 74 69 6f 6e 20 |LinkDest|ination |
|00003d30| 3d 20 22 22 3b 0d 0a 09 | 09 62 72 65 61 6b 3b 0d |= "";...|.break;.|
|00003d40| 0a 09 63 61 73 65 20 22 | 4e 4f 42 52 22 3a 0d 0a |..case "|NOBR":..|
|00003d50| 09 09 43 75 72 72 65 6e | 74 53 74 79 6c 65 2e 62 |..Curren|tStyle.b|
|00003d60| 4e 6f 42 52 20 3d 20 54 | 72 75 65 3b 0d 0a 09 09 |NoBR = T|rue;....|
|00003d70| 62 72 65 61 6b 3b 0d 0a | 09 63 61 73 65 20 22 2f |break;..|.case "/|
|00003d80| 4e 4f 42 52 22 3a 0d 0a | 09 09 43 75 72 72 65 6e |NOBR":..|..Curren|
|00003d90| 74 53 74 79 6c 65 2e 62 | 4e 6f 42 52 20 3d 20 46 |tStyle.b|NoBR = F|
|00003da0| 61 6c 73 65 3b 0d 0a 09 | 09 62 72 65 61 6b 3b 0d |alse;...|.break;.|
|00003db0| 0a 09 63 61 73 65 20 22 | 42 4c 49 4e 4b 22 3a 0d |..case "|BLINK":.|
|00003dc0| 0a 09 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |...Curre|ntStyle.|
|00003dd0| 62 42 6c 69 6e 6b 20 3d | 20 54 72 75 65 3b 0d 0a |bBlink =| True;..|
|00003de0| 09 09 62 72 65 61 6b 3b | 0d 0a 09 63 61 73 65 20 |..break;|...case |
|00003df0| 22 2f 42 4c 49 4e 4b 22 | 3a 0d 0a 09 09 43 75 72 |"/BLINK"|:....Cur|
|00003e00| 72 65 6e 74 53 74 79 6c | 65 2e 62 42 6c 69 6e 6b |rentStyl|e.bBlink|
|00003e10| 20 3d 20 46 61 6c 73 65 | 3b 0d 0a 09 09 62 72 65 | = False|;....bre|
|00003e20| 61 6b 3b 0d 0a 09 7d 0d | 0a 7d 0d 0a 0d 0a 2f 2f |ak;...}.|.}....//|
|00003e30| 20 75 70 64 61 74 65 20 | 74 68 65 20 63 75 72 72 | update |the curr|
|00003e40| 65 6e 74 20 73 74 79 6c | 65 20 62 61 73 65 64 20 |ent styl|e based |
|00003e50| 6f 6e 20 73 6f 6d 65 20 | 74 65 78 74 20 69 6e 70 |on some |text inp|
|00003e60| 75 74 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 48 54 4d |ut..func|tion HTM|
|00003e70| 4c 55 70 64 61 74 65 53 | 74 79 6c 65 28 73 74 72 |LUpdateS|tyle(str|
|00003e80| 69 6e 67 20 49 6e 70 75 | 74 2c 20 6f 75 74 20 48 |ing Inpu|t, out H|
|00003e90| 54 4d 4c 53 74 79 6c 65 | 20 43 75 72 72 65 6e 74 |TMLStyle| Current|
|00003ea0| 53 74 79 6c 65 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |Style)..|{...loca|
|00003eb0| 6c 20 73 74 72 69 6e 67 | 20 4c 65 66 74 54 65 78 |l string| LeftTex|
|00003ec0| 74 2c 20 48 54 4d 4c 2c | 20 52 69 67 68 74 54 65 |t, HTML,| RightTe|
|00003ed0| 78 74 3b 20 0d 0a 0d 0a | 09 77 68 69 6c 65 28 49 |xt; ....|.while(I|
|00003ee0| 6e 70 75 74 20 21 3d 20 | 22 22 29 0d 0a 09 7b 0d |nput != |"")...{.|
|00003ef0| 0a 09 09 50 61 72 73 65 | 48 54 4d 4c 28 49 6e 70 |...Parse|HTML(Inp|
|00003f00| 75 74 2c 20 4c 65 66 74 | 54 65 78 74 2c 20 48 54 |ut, Left|Text, HT|
|00003f10| 4d 4c 2c 20 52 69 67 68 | 74 54 65 78 74 29 3b 0d |ML, Righ|tText);.|
|00003f20| 0a 09 09 50 72 6f 63 65 | 73 73 49 6e 6c 69 6e 65 |...Proce|ssInline|
|00003f30| 48 54 4d 4c 28 48 54 4d | 4c 2c 20 43 75 72 72 65 |HTML(HTM|L, Curre|
|00003f40| 6e 74 53 74 79 6c 65 29 | 3b 0d 0a 09 09 49 6e 70 |ntStyle)|;....Inp|
|00003f50| 75 74 20 3d 20 52 69 67 | 68 74 54 65 78 74 3b 0d |ut = Rig|htText;.|
|00003f60| 0a 09 7d 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |..}..}..|..functi|
|00003f70| 6f 6e 20 73 74 72 69 6e | 67 20 47 65 74 4f 70 74 |on strin|g GetOpt|
|00003f80| 69 6f 6e 28 73 74 72 69 | 6e 67 20 48 54 4d 4c 2c |ion(stri|ng HTML,|
|00003f90| 20 73 74 72 69 6e 67 20 | 4f 70 74 69 6f 6e 29 0d | string |Option).|
|00003fa0| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 69 6e 74 20 69 |.{...loc|al int i|
|00003fb0| 2c 20 6a 3b 0d 0a 09 6c | 6f 63 61 6c 20 73 74 72 |, j;...l|ocal str|
|00003fc0| 69 6e 67 20 73 3b 0d 0a | 09 0d 0a 09 69 20 3d 20 |ing s;..|....i = |
|00003fd0| 49 6e 53 74 72 28 43 61 | 70 73 28 48 54 4d 4c 29 |InStr(Ca|ps(HTML)|
|00003fe0| 2c 20 43 61 70 73 28 4f | 70 74 69 6f 6e 29 29 3b |, Caps(O|ption));|
|00003ff0| 0d 0a 0d 0a 09 69 66 28 | 69 20 3d 3d 20 31 20 7c |.....if(|i == 1 ||
|00004000| 7c 20 4d 69 64 28 48 54 | 4d 4c 2c 20 69 2d 31 2c || Mid(HT|ML, i-1,|
|00004010| 20 31 29 20 3d 3d 20 22 | 20 22 29 20 0d 0a 09 7b | 1) == "| ") ...{|
|00004020| 0d 0a 09 09 73 20 3d 20 | 4d 69 64 28 48 54 4d 4c |....s = |Mid(HTML|
|00004030| 2c 20 69 2b 4c 65 6e 28 | 4f 70 74 69 6f 6e 29 29 |, i+Len(|Option))|
|00004040| 3b 0d 0a 09 09 6a 20 3d | 20 46 69 72 73 74 4d 61 |;....j =| FirstMa|
|00004050| 74 63 68 69 6e 67 28 49 | 6e 53 74 72 28 73 2c 20 |tching(I|nStr(s, |
|00004060| 22 3e 22 29 2c 20 49 6e | 53 74 72 28 73 2c 20 22 |">"), In|Str(s, "|
|00004070| 20 22 29 29 3b 0d 0a 09 | 09 73 20 3d 20 4c 65 66 | "));...|.s = Lef|
|00004080| 74 28 73 2c 20 6a 29 3b | 0d 0a 0d 0a 09 09 69 66 |t(s, j);|......if|
|00004090| 28 4c 65 66 74 28 73 2c | 20 31 29 20 3d 3d 20 22 |(Left(s,| 1) == "|
|000040a0| 5c 22 22 29 0d 0a 09 09 | 09 73 20 3d 20 4d 69 64 |\"")....|.s = Mid|
|000040b0| 28 73 2c 20 31 29 3b 0d | 0a 0d 0a 09 09 69 66 28 |(s, 1);.|.....if(|
|000040c0| 52 69 67 68 74 28 73 2c | 20 31 29 20 3d 3d 20 22 |Right(s,| 1) == "|
|000040d0| 5c 22 22 29 0d 0a 09 09 | 09 73 20 3d 20 4c 65 66 |\"")....|.s = Lef|
|000040e0| 74 28 73 2c 20 4c 65 6e | 28 73 29 20 2d 20 31 29 |t(s, Len|(s) - 1)|
|000040f0| 3b 0d 0a 0d 0a 09 09 72 | 65 74 75 72 6e 20 73 3b |;......r|eturn s;|
|00004100| 0d 0a 09 7d 0d 0a 09 72 | 65 74 75 72 6e 20 22 22 |...}...r|eturn ""|
|00004110| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00004120| 20 73 74 72 69 6e 67 20 | 47 65 74 54 61 67 28 73 | string |GetTag(s|
|00004130| 74 72 69 6e 67 20 48 54 | 4d 4c 29 0d 0a 7b 0d 0a |tring HT|ML)..{..|
|00004140| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 69 3b 0d 0a 0d |.local i|nt i;...|
|00004150| 0a 09 69 66 28 48 54 4d | 4c 20 3d 3d 20 22 22 29 |..if(HTM|L == "")|
|00004160| 0d 0a 09 09 72 65 74 75 | 72 6e 20 22 22 3b 0d 0a |....retu|rn "";..|
|00004170| 0d 0a 09 48 54 4d 4c 20 | 3d 20 4d 69 64 28 48 54 |...HTML |= Mid(HT|
|00004180| 4d 4c 2c 20 31 29 3b 20 | 2f 2f 20 6c 6f 73 65 20 |ML, 1); |// lose |
|00004190| 3c 0d 0a 0d 0a 09 69 20 | 3d 20 46 69 72 73 74 4d |<.....i |= FirstM|
|000041a0| 61 74 63 68 69 6e 67 28 | 49 6e 53 74 72 28 48 54 |atching(|InStr(HT|
|000041b0| 4d 4c 2c 20 22 3e 22 29 | 2c 20 49 6e 53 74 72 28 |ML, ">")|, InStr(|
|000041c0| 48 54 4d 4c 2c 20 22 20 | 22 29 29 3b 0d 0a 09 69 |HTML, " |"));...i|
|000041d0| 66 28 69 20 3d 3d 20 2d | 31 29 0d 0a 09 09 72 65 |f(i == -|1)....re|
|000041e0| 74 75 72 6e 20 43 61 70 | 73 28 48 54 4d 4c 29 3b |turn Cap|s(HTML);|
|000041f0| 0d 0a 09 65 6c 73 65 0d | 0a 09 09 72 65 74 75 72 |...else.|...retur|
|00004200| 6e 20 43 61 70 73 28 4c | 65 66 74 28 48 54 4d 4c |n Caps(L|eft(HTML|
|00004210| 2c 20 69 29 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |, i));..|}....fun|
|00004220| 63 74 69 6f 6e 20 43 6f | 6c 6f 72 20 50 61 72 73 |ction Co|lor Pars|
|00004230| 65 43 6f 6c 6f 72 28 73 | 74 72 69 6e 67 20 53 29 |eColor(s|tring S)|
|00004240| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 43 6f 6c 6f |..{...lo|cal Colo|
|00004250| 72 20 43 3b 0d 0a 0d 0a | 09 69 66 28 4c 65 66 74 |r C;....|.if(Left|
|00004260| 28 53 2c 20 31 29 20 3d | 3d 20 22 23 22 29 0d 0a |(S, 1) =|= "#")..|
|00004270| 09 09 53 20 3d 20 4d 69 | 64 28 53 2c 20 31 29 3b |..S = Mi|d(S, 1);|
|00004280| 0d 0a 0d 0a 09 43 2e 52 | 20 3d 20 31 36 20 2a 20 |.....C.R| = 16 * |
|00004290| 47 65 74 48 65 78 44 69 | 67 69 74 28 4d 69 64 28 |GetHexDi|git(Mid(|
|000042a0| 53 2c 20 30 2c 20 31 29 | 29 20 2b 20 47 65 74 48 |S, 0, 1)|) + GetH|
|000042b0| 65 78 44 69 67 69 74 28 | 4d 69 64 28 53 2c 20 31 |exDigit(|Mid(S, 1|
|000042c0| 2c 20 31 29 29 3b 0d 0a | 09 43 2e 47 20 3d 20 31 |, 1));..|.C.G = 1|
|000042d0| 36 20 2a 20 47 65 74 48 | 65 78 44 69 67 69 74 28 |6 * GetH|exDigit(|
|000042e0| 4d 69 64 28 53 2c 20 32 | 2c 20 31 29 29 20 2b 20 |Mid(S, 2|, 1)) + |
|000042f0| 47 65 74 48 65 78 44 69 | 67 69 74 28 4d 69 64 28 |GetHexDi|git(Mid(|
|00004300| 53 2c 20 33 2c 20 31 29 | 29 3b 0d 0a 09 43 2e 42 |S, 3, 1)|);...C.B|
|00004310| 20 3d 20 31 36 20 2a 20 | 47 65 74 48 65 78 44 69 | = 16 * |GetHexDi|
|00004320| 67 69 74 28 4d 69 64 28 | 53 2c 20 34 2c 20 31 29 |git(Mid(|S, 4, 1)|
|00004330| 29 20 2b 20 47 65 74 48 | 65 78 44 69 67 69 74 28 |) + GetH|exDigit(|
|00004340| 4d 69 64 28 53 2c 20 35 | 2c 20 31 29 29 3b 0d 0a |Mid(S, 5|, 1));..|
|00004350| 0d 0a 09 72 65 74 75 72 | 6e 20 43 3b 0d 0a 7d 0d |...retur|n C;..}.|
|00004360| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 69 6e 74 20 |...funct|ion int |
|00004370| 47 65 74 48 65 78 44 69 | 67 69 74 28 73 74 72 69 |GetHexDi|git(stri|
|00004380| 6e 67 20 44 29 0d 0a 7b | 0d 0a 09 73 77 69 74 63 |ng D)..{|...switc|
|00004390| 68 28 63 61 70 73 28 44 | 29 29 0d 0a 09 7b 0d 0a |h(caps(D|))...{..|
|000043a0| 09 63 61 73 65 20 22 30 | 22 3a 20 72 65 74 75 72 |.case "0|": retur|
|000043b0| 6e 20 30 3b 0d 0a 09 63 | 61 73 65 20 22 31 22 3a |n 0;...c|ase "1":|
|000043c0| 20 72 65 74 75 72 6e 20 | 31 3b 0d 0a 09 63 61 73 | return |1;...cas|
|000043d0| 65 20 22 32 22 3a 20 72 | 65 74 75 72 6e 20 32 3b |e "2": r|eturn 2;|
|000043e0| 0d 0a 09 63 61 73 65 20 | 22 33 22 3a 20 72 65 74 |...case |"3": ret|
|000043f0| 75 72 6e 20 33 3b 0d 0a | 09 63 61 73 65 20 22 34 |urn 3;..|.case "4|
|00004400| 22 3a 20 72 65 74 75 72 | 6e 20 34 3b 0d 0a 09 63 |": retur|n 4;...c|
|00004410| 61 73 65 20 22 35 22 3a | 20 72 65 74 75 72 6e 20 |ase "5":| return |
|00004420| 35 3b 20 0d 0a 09 63 61 | 73 65 20 22 36 22 3a 20 |5; ...ca|se "6": |
|00004430| 72 65 74 75 72 6e 20 36 | 3b 20 0d 0a 09 63 61 73 |return 6|; ...cas|
|00004440| 65 20 22 37 22 3a 20 72 | 65 74 75 72 6e 20 37 3b |e "7": r|eturn 7;|
|00004450| 20 0d 0a 09 63 61 73 65 | 20 22 38 22 3a 20 72 65 | ...case| "8": re|
|00004460| 74 75 72 6e 20 38 3b 20 | 0d 0a 09 63 61 73 65 20 |turn 8; |...case |
|00004470| 22 39 22 3a 20 72 65 74 | 75 72 6e 20 39 3b 20 0d |"9": ret|urn 9; .|
|00004480| 0a 09 63 61 73 65 20 22 | 41 22 3a 20 72 65 74 75 |..case "|A": retu|
|00004490| 72 6e 20 31 30 3b 20 0d | 0a 09 63 61 73 65 20 22 |rn 10; .|..case "|
|000044a0| 42 22 3a 20 72 65 74 75 | 72 6e 20 31 31 3b 20 0d |B": retu|rn 11; .|
|000044b0| 0a 09 63 61 73 65 20 22 | 43 22 3a 20 72 65 74 75 |..case "|C": retu|
|000044c0| 72 6e 20 31 32 3b 20 0d | 0a 09 63 61 73 65 20 22 |rn 12; .|..case "|
|000044d0| 44 22 3a 20 72 65 74 75 | 72 6e 20 31 33 3b 20 0d |D": retu|rn 13; .|
|000044e0| 0a 09 63 61 73 65 20 22 | 45 22 3a 20 72 65 74 75 |..case "|E": retu|
|000044f0| 72 6e 20 31 34 3b 20 0d | 0a 09 63 61 73 65 20 22 |rn 14; .|..case "|
|00004500| 46 22 3a 20 72 65 74 75 | 72 6e 20 31 35 3b 20 0d |F": retu|rn 15; .|
|00004510| 0a 09 7d 0d 0a 0d 0a 09 | 72 65 74 75 72 6e 20 30 |..}.....|return 0|
|00004520| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00004530| 20 69 6e 74 20 46 69 72 | 73 74 4d 61 74 63 68 69 | int Fir|stMatchi|
|00004540| 6e 67 28 69 6e 74 20 69 | 2c 20 69 6e 74 20 6a 29 |ng(int i|, int j)|
|00004550| 0d 0a 7b 0d 0a 09 69 66 | 28 69 20 3d 3d 20 2d 31 |..{...if|(i == -1|
|00004560| 29 0d 0a 09 09 72 65 74 | 75 72 6e 20 6a 3b 0d 0a |)....ret|urn j;..|
|00004570| 0d 0a 09 69 66 28 6a 20 | 3d 3d 20 2d 31 29 0d 0a |...if(j |== -1)..|
|00004580| 09 09 72 65 74 75 72 6e | 20 69 3b 0d 0a 09 65 6c |..return| i;...el|
|00004590| 73 65 0d 0a 09 09 72 65 | 74 75 72 6e 20 4d 69 6e |se....re|turn Min|
|000045a0| 28 69 2c 20 6a 29 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |(i, j);.|.}....fu|
|000045b0| 6e 63 74 69 6f 6e 20 53 | 65 74 43 61 6e 76 61 73 |nction S|etCanvas|
|000045c0| 53 74 79 6c 65 28 43 61 | 6e 76 61 73 20 43 2c 20 |Style(Ca|nvas C, |
|000045d0| 48 54 4d 4c 53 74 79 6c | 65 20 43 75 72 72 65 6e |HTMLStyl|e Curren|
|000045e0| 74 53 74 79 6c 65 29 0d | 0a 7b 0d 0a 09 69 66 28 |tStyle).|.{...if(|
|000045f0| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 2e 62 4c 69 |CurrentS|tyle.bLi|
|00004600| 6e 6b 29 0d 0a 09 09 43 | 2e 44 72 61 77 43 6f 6c |nk)....C|.DrawCol|
|00004610| 6f 72 20 3d 20 4c 69 6e | 6b 43 6f 6c 6f 72 3b 0d |or = Lin|kColor;.|
|00004620| 0a 09 65 6c 73 65 0d 0a | 09 09 43 2e 44 72 61 77 |..else..|..C.Draw|
|00004630| 43 6f 6c 6f 72 20 3d 20 | 43 75 72 72 65 6e 74 53 |Color = |CurrentS|
|00004640| 74 79 6c 65 2e 54 65 78 | 74 43 6f 6c 6f 72 3b 0d |tyle.Tex|tColor;.|
|00004650| 0a 0d 0a 09 69 66 28 43 | 75 72 72 65 6e 74 53 74 |....if(C|urrentSt|
|00004660| 79 6c 65 2e 62 48 65 61 | 64 69 6e 67 29 0d 0a 09 |yle.bHea|ding)...|
|00004670| 09 43 2e 46 6f 6e 74 20 | 3d 20 52 6f 6f 74 2e 46 |.C.Font |= Root.F|
|00004680| 6f 6e 74 73 5b 46 5f 4c | 61 72 67 65 42 6f 6c 64 |onts[F_L|argeBold|
|00004690| 5d 3b 0d 0a 09 65 6c 73 | 65 0d 0a 09 69 66 28 43 |];...els|e...if(C|
|000046a0| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 62 42 6f 6c |urrentSt|yle.bBol|
|000046b0| 64 29 0d 0a 09 09 43 2e | 46 6f 6e 74 20 3d 20 52 |d)....C.|Font = R|
|000046c0| 6f 6f 74 2e 46 6f 6e 74 | 73 5b 46 5f 42 6f 6c 64 |oot.Font|s[F_Bold|
|000046d0| 5d 3b 0d 0a 09 65 6c 73 | 65 0d 0a 09 09 43 2e 46 |];...els|e....C.F|
|000046e0| 6f 6e 74 20 3d 20 52 6f | 6f 74 2e 46 6f 6e 74 73 |ont = Ro|ot.Fonts|
|000046f0| 5b 46 5f 4e 6f 72 6d 61 | 6c 5d 3b 0d 0a 7d 0d 0a |[F_Norma|l];..}..|
|00004700| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 73 74 72 69 6e |..functi|on strin|
|00004710| 67 20 57 72 69 74 65 53 | 74 79 6c 65 54 65 78 74 |g WriteS|tyleText|
|00004720| 28 48 54 4d 4c 53 74 79 | 6c 65 20 43 75 72 72 65 |(HTMLSty|le Curre|
|00004730| 6e 74 53 74 79 6c 65 2c | 20 69 6e 74 20 43 68 61 |ntStyle,| int Cha|
|00004740| 72 43 6f 75 6e 74 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |rCount).|.{...loc|
|00004750| 61 6c 20 73 74 72 69 6e | 67 20 50 61 64 3b 0d 0a |al strin|g Pad;..|
|00004760| 09 6c 6f 63 61 6c 20 73 | 74 72 69 6e 67 20 54 65 |.local s|tring Te|
|00004770| 6d 70 3b 0d 0a 09 6c 6f | 63 61 6c 20 73 74 72 69 |mp;...lo|cal stri|
|00004780| 6e 67 20 4f 75 74 70 75 | 74 3b 0d 0a 0d 0a 09 50 |ng Outpu|t;.....P|
|00004790| 61 64 20 3d 20 22 30 30 | 30 30 22 3b 0d 0a 0d 0a |ad = "00|00";....|
|000047a0| 09 54 65 6d 70 20 3d 20 | 73 74 72 69 6e 67 28 43 |.Temp = |string(C|
|000047b0| 68 61 72 43 6f 75 6e 74 | 29 3b 0d 0a 09 4f 75 74 |harCount|);...Out|
|000047c0| 70 75 74 20 3d 20 4c 65 | 66 74 28 50 61 64 2c 20 |put = Le|ft(Pad, |
|000047d0| 34 20 2d 20 4c 65 6e 28 | 54 65 6d 70 29 29 20 24 |4 - Len(|Temp)) $|
|000047e0| 20 54 65 6d 70 3b 0d 0a | 09 09 0d 0a 09 54 65 6d | Temp;..|.....Tem|
|000047f0| 70 20 3d 20 73 74 72 69 | 6e 67 28 4c 65 6e 28 43 |p = stri|ng(Len(C|
|00004800| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 4c 69 6e 6b |urrentSt|yle.Link|
|00004810| 44 65 73 74 69 6e 61 74 | 69 6f 6e 29 29 3b 0d 0a |Destinat|ion));..|
|00004820| 09 4f 75 74 70 75 74 20 | 3d 20 4f 75 74 70 75 74 |.Output |= Output|
|00004830| 20 24 20 4c 65 66 74 28 | 50 61 64 2c 20 34 20 2d | $ Left(|Pad, 4 -|
|00004840| 20 4c 65 6e 28 54 65 6d | 70 29 29 20 24 20 54 65 | Len(Tem|p)) $ Te|
|00004850| 6d 70 20 24 20 43 75 72 | 72 65 6e 74 53 74 79 6c |mp $ Cur|rentStyl|
|00004860| 65 2e 4c 69 6e 6b 44 65 | 73 74 69 6e 61 74 69 6f |e.LinkDe|stinatio|
|00004870| 6e 3b 0d 0a 0d 0a 09 54 | 65 6d 70 20 3d 20 73 74 |n;.....T|emp = st|
|00004880| 72 69 6e 67 28 43 75 72 | 72 65 6e 74 53 74 79 6c |ring(Cur|rentStyl|
|00004890| 65 2e 54 65 78 74 43 6f | 6c 6f 72 2e 52 29 3b 0d |e.TextCo|lor.R);.|
|000048a0| 0a 09 4f 75 74 70 75 74 | 20 3d 20 4f 75 74 70 75 |..Output| = Outpu|
|000048b0| 74 20 24 20 4c 65 66 74 | 28 50 61 64 2c 20 33 20 |t $ Left|(Pad, 3 |
|000048c0| 2d 20 4c 65 6e 28 54 65 | 6d 70 29 29 20 24 20 54 |- Len(Te|mp)) $ T|
|000048d0| 65 6d 70 3b 0d 0a 09 54 | 65 6d 70 20 3d 20 73 74 |emp;...T|emp = st|
|000048e0| 72 69 6e 67 28 43 75 72 | 72 65 6e 74 53 74 79 6c |ring(Cur|rentStyl|
|000048f0| 65 2e 54 65 78 74 43 6f | 6c 6f 72 2e 47 29 3b 0d |e.TextCo|lor.G);.|
|00004900| 0a 09 4f 75 74 70 75 74 | 20 3d 20 4f 75 74 70 75 |..Output| = Outpu|
|00004910| 74 20 24 20 4c 65 66 74 | 28 50 61 64 2c 20 33 20 |t $ Left|(Pad, 3 |
|00004920| 2d 20 4c 65 6e 28 54 65 | 6d 70 29 29 20 24 20 54 |- Len(Te|mp)) $ T|
|00004930| 65 6d 70 3b 0d 0a 09 54 | 65 6d 70 20 3d 20 73 74 |emp;...T|emp = st|
|00004940| 72 69 6e 67 28 43 75 72 | 72 65 6e 74 53 74 79 6c |ring(Cur|rentStyl|
|00004950| 65 2e 54 65 78 74 43 6f | 6c 6f 72 2e 42 29 3b 0d |e.TextCo|lor.B);.|
|00004960| 0a 09 4f 75 74 70 75 74 | 20 3d 20 4f 75 74 70 75 |..Output| = Outpu|
|00004970| 74 20 24 20 4c 65 66 74 | 28 50 61 64 2c 20 33 20 |t $ Left|(Pad, 3 |
|00004980| 2d 20 4c 65 6e 28 54 65 | 6d 70 29 29 20 24 20 54 |- Len(Te|mp)) $ T|
|00004990| 65 6d 70 3b 0d 0a 0d 0a | 09 54 65 6d 70 20 3d 20 |emp;....|.Temp = |
|000049a0| 73 74 72 69 6e 67 28 43 | 75 72 72 65 6e 74 53 74 |string(C|urrentSt|
|000049b0| 79 6c 65 2e 42 47 43 6f | 6c 6f 72 2e 52 29 3b 0d |yle.BGCo|lor.R);.|
|000049c0| 0a 09 4f 75 74 70 75 74 | 20 3d 20 4f 75 74 70 75 |..Output| = Outpu|
|000049d0| 74 20 24 20 4c 65 66 74 | 28 50 61 64 2c 20 33 20 |t $ Left|(Pad, 3 |
|000049e0| 2d 20 4c 65 6e 28 54 65 | 6d 70 29 29 20 24 20 54 |- Len(Te|mp)) $ T|
|000049f0| 65 6d 70 3b 0d 0a 09 54 | 65 6d 70 20 3d 20 73 74 |emp;...T|emp = st|
|00004a00| 72 69 6e 67 28 43 75 72 | 72 65 6e 74 53 74 79 6c |ring(Cur|rentStyl|
|00004a10| 65 2e 42 47 43 6f 6c 6f | 72 2e 47 29 3b 0d 0a 09 |e.BGColo|r.G);...|
|00004a20| 4f 75 74 70 75 74 20 3d | 20 4f 75 74 70 75 74 20 |Output =| Output |
|00004a30| 24 20 4c 65 66 74 28 50 | 61 64 2c 20 33 20 2d 20 |$ Left(P|ad, 3 - |
|00004a40| 4c 65 6e 28 54 65 6d 70 | 29 29 20 24 20 54 65 6d |Len(Temp|)) $ Tem|
|00004a50| 70 3b 0d 0a 09 54 65 6d | 70 20 3d 20 73 74 72 69 |p;...Tem|p = stri|
|00004a60| 6e 67 28 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |ng(Curre|ntStyle.|
|00004a70| 42 47 43 6f 6c 6f 72 2e | 42 29 3b 0d 0a 09 4f 75 |BGColor.|B);...Ou|
|00004a80| 74 70 75 74 20 3d 20 4f | 75 74 70 75 74 20 24 20 |tput = O|utput $ |
|00004a90| 4c 65 66 74 28 50 61 64 | 2c 20 33 20 2d 20 4c 65 |Left(Pad|, 3 - Le|
|00004aa0| 6e 28 54 65 6d 70 29 29 | 20 24 20 54 65 6d 70 3b |n(Temp))| $ Temp;|
|00004ab0| 0d 0a 0d 0a 09 69 66 28 | 43 75 72 72 65 6e 74 53 |.....if(|CurrentS|
|00004ac0| 74 79 6c 65 2e 62 43 65 | 6e 74 65 72 29 0d 0a 09 |tyle.bCe|nter)...|
|00004ad0| 09 4f 75 74 70 75 74 20 | 3d 20 4f 75 74 70 75 74 |.Output |= Output|
|00004ae0| 20 24 20 22 54 22 3b 0d | 0a 09 65 6c 73 65 0d 0a | $ "T";.|..else..|
|00004af0| 09 09 4f 75 74 70 75 74 | 20 3d 20 4f 75 74 70 75 |..Output| = Outpu|
|00004b00| 74 20 24 20 22 46 22 3b | 0d 0a 0d 0a 09 69 66 28 |t $ "F";|.....if(|
|00004b10| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 2e 62 4c 69 |CurrentS|tyle.bLi|
|00004b20| 6e 6b 29 0d 0a 09 09 4f | 75 74 70 75 74 20 3d 20 |nk)....O|utput = |
|00004b30| 4f 75 74 70 75 74 20 24 | 20 22 54 22 3b 0d 0a 09 |Output $| "T";...|
|00004b40| 65 6c 73 65 0d 0a 09 09 | 4f 75 74 70 75 74 20 3d |else....|Output =|
|00004b50| 20 4f 75 74 70 75 74 20 | 24 20 22 46 22 3b 0d 0a | Output |$ "F";..|
|00004b60| 0d 0a 09 69 66 28 43 75 | 72 72 65 6e 74 53 74 79 |...if(Cu|rrentSty|
|00004b70| 6c 65 2e 62 55 6e 64 65 | 72 6c 69 6e 65 29 0d 0a |le.bUnde|rline)..|
|00004b80| 09 09 4f 75 74 70 75 74 | 20 3d 20 4f 75 74 70 75 |..Output| = Outpu|
|00004b90| 74 20 24 20 22 54 22 3b | 0d 0a 09 65 6c 73 65 0d |t $ "T";|...else.|
|00004ba0| 0a 09 09 4f 75 74 70 75 | 74 20 3d 20 4f 75 74 70 |...Outpu|t = Outp|
|00004bb0| 75 74 20 24 20 22 46 22 | 3b 0d 0a 0d 0a 09 69 66 |ut $ "F"|;.....if|
|00004bc0| 28 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 62 4e |(Current|Style.bN|
|00004bd0| 6f 42 52 29 0d 0a 09 09 | 4f 75 74 70 75 74 20 3d |oBR)....|Output =|
|00004be0| 20 4f 75 74 70 75 74 20 | 24 20 22 54 22 3b 0d 0a | Output |$ "T";..|
|00004bf0| 09 65 6c 73 65 0d 0a 09 | 09 4f 75 74 70 75 74 20 |.else...|.Output |
|00004c00| 3d 20 4f 75 74 70 75 74 | 20 24 20 22 46 22 3b 0d |= Output| $ "F";.|
|00004c10| 0a 0d 0a 09 69 66 28 43 | 75 72 72 65 6e 74 53 74 |....if(C|urrentSt|
|00004c20| 79 6c 65 2e 62 48 65 61 | 64 69 6e 67 29 0d 0a 09 |yle.bHea|ding)...|
|00004c30| 09 4f 75 74 70 75 74 20 | 3d 20 4f 75 74 70 75 74 |.Output |= Output|
|00004c40| 20 24 20 22 54 22 3b 0d | 0a 09 65 6c 73 65 0d 0a | $ "T";.|..else..|
|00004c50| 09 09 4f 75 74 70 75 74 | 20 3d 20 4f 75 74 70 75 |..Output| = Outpu|
|00004c60| 74 20 24 20 22 46 22 3b | 0d 0a 0d 0a 09 69 66 28 |t $ "F";|.....if(|
|00004c70| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 2e 62 42 6f |CurrentS|tyle.bBo|
|00004c80| 6c 64 29 0d 0a 09 09 4f | 75 74 70 75 74 20 3d 20 |ld)....O|utput = |
|00004c90| 4f 75 74 70 75 74 20 24 | 20 22 54 22 3b 0d 0a 09 |Output $| "T";...|
|00004ca0| 65 6c 73 65 0d 0a 09 09 | 4f 75 74 70 75 74 20 3d |else....|Output =|
|00004cb0| 20 4f 75 74 70 75 74 20 | 24 20 22 46 22 3b 0d 0a | Output |$ "F";..|
|00004cc0| 0d 0a 09 69 66 28 43 75 | 72 72 65 6e 74 53 74 79 |...if(Cu|rrentSty|
|00004cd0| 6c 65 2e 62 42 6c 69 6e | 6b 29 0d 0a 09 09 4f 75 |le.bBlin|k)....Ou|
|00004ce0| 74 70 75 74 20 3d 20 4f | 75 74 70 75 74 20 24 20 |tput = O|utput $ |
|00004cf0| 22 54 22 3b 0d 0a 09 65 | 6c 73 65 0d 0a 09 09 4f |"T";...e|lse....O|
|00004d00| 75 74 70 75 74 20 3d 20 | 4f 75 74 70 75 74 20 24 |utput = |Output $|
|00004d10| 20 22 46 22 3b 0d 0a 0d | 0a 09 72 65 74 75 72 6e | "F";...|..return|
|00004d20| 20 4f 75 74 70 75 74 3b | 0d 0a 7d 0d 0a 0d 0a 66 | Output;|..}....f|
|00004d30| 75 6e 63 74 69 6f 6e 20 | 69 6e 74 20 52 65 61 64 |unction |int Read|
|00004d40| 53 74 79 6c 65 54 65 78 | 74 28 73 74 72 69 6e 67 |StyleTex|t(string|
|00004d50| 20 53 74 79 6c 65 53 74 | 72 69 6e 67 2c 20 6f 75 | StyleSt|ring, ou|
|00004d60| 74 20 69 6e 74 20 53 74 | 79 6c 65 50 6f 73 2c 20 |t int St|ylePos, |
|00004d70| 6f 75 74 20 48 54 4d 4c | 53 74 79 6c 65 20 43 75 |out HTML|Style Cu|
|00004d80| 72 72 65 6e 74 53 74 79 | 6c 65 29 0d 0a 7b 0d 0a |rrentSty|le)..{..|
|00004d90| 09 6c 6f 63 61 6c 20 73 | 74 72 69 6e 67 20 54 65 |.local s|tring Te|
|00004da0| 6d 70 3b 0d 0a 09 6c 6f | 63 61 6c 20 69 6e 74 20 |mp;...lo|cal int |
|00004db0| 43 68 61 72 43 6f 75 6e | 74 3b 0d 0a 09 6c 6f 63 |CharCoun|t;...loc|
|00004dc0| 61 6c 20 69 6e 74 20 69 | 3b 09 0d 0a 0d 0a 09 43 |al int i|;......C|
|00004dd0| 68 61 72 43 6f 75 6e 74 | 20 3d 20 49 6e 74 28 4d |harCount| = Int(M|
|00004de0| 69 64 28 53 74 79 6c 65 | 53 74 72 69 6e 67 2c 20 |id(Style|String, |
|00004df0| 53 74 79 6c 65 50 6f 73 | 2c 20 34 29 29 3b 0d 0a |StylePos|, 4));..|
|00004e00| 09 53 74 79 6c 65 50 6f | 73 20 2b 3d 20 34 3b 0d |.StylePo|s += 4;.|
|00004e10| 0a 0d 0a 09 69 20 3d 20 | 49 6e 74 28 4d 69 64 28 |....i = |Int(Mid(|
|00004e20| 53 74 79 6c 65 53 74 72 | 69 6e 67 2c 20 53 74 79 |StyleStr|ing, Sty|
|00004e30| 6c 65 50 6f 73 2c 20 34 | 29 29 3b 0d 0a 09 53 74 |lePos, 4|));...St|
|00004e40| 79 6c 65 50 6f 73 20 2b | 3d 20 34 3b 0d 0a 09 09 |ylePos +|= 4;....|
|00004e50| 0d 0a 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |...Curre|ntStyle.|
|00004e60| 4c 69 6e 6b 44 65 73 74 | 69 6e 61 74 69 6f 6e 20 |LinkDest|ination |
|00004e70| 3d 20 4d 69 64 28 53 74 | 79 6c 65 53 74 72 69 6e |= Mid(St|yleStrin|
|00004e80| 67 2c 20 53 74 79 6c 65 | 50 6f 73 2c 20 69 29 3b |g, Style|Pos, i);|
|00004e90| 0d 0a 09 53 74 79 6c 65 | 50 6f 73 20 2b 3d 20 69 |...Style|Pos += i|
|00004ea0| 3b 0d 0a 0d 0a 09 43 75 | 72 72 65 6e 74 53 74 79 |;.....Cu|rrentSty|
|00004eb0| 6c 65 2e 54 65 78 74 43 | 6f 6c 6f 72 2e 52 20 3d |le.TextC|olor.R =|
|00004ec0| 20 49 6e 74 28 4d 69 64 | 28 53 74 79 6c 65 53 74 | Int(Mid|(StyleSt|
|00004ed0| 72 69 6e 67 2c 20 53 74 | 79 6c 65 50 6f 73 2c 20 |ring, St|ylePos, |
|00004ee0| 33 29 29 3b 0d 0a 09 53 | 74 79 6c 65 50 6f 73 20 |3));...S|tylePos |
|00004ef0| 2b 3d 20 33 3b 0d 0a 09 | 43 75 72 72 65 6e 74 53 |+= 3;...|CurrentS|
|00004f00| 74 79 6c 65 2e 54 65 78 | 74 43 6f 6c 6f 72 2e 47 |tyle.Tex|tColor.G|
|00004f10| 20 3d 20 49 6e 74 28 4d | 69 64 28 53 74 79 6c 65 | = Int(M|id(Style|
|00004f20| 53 74 72 69 6e 67 2c 20 | 53 74 79 6c 65 50 6f 73 |String, |StylePos|
|00004f30| 2c 20 33 29 29 3b 0d 0a | 09 53 74 79 6c 65 50 6f |, 3));..|.StylePo|
|00004f40| 73 20 2b 3d 20 33 3b 0d | 0a 09 43 75 72 72 65 6e |s += 3;.|..Curren|
|00004f50| 74 53 74 79 6c 65 2e 54 | 65 78 74 43 6f 6c 6f 72 |tStyle.T|extColor|
|00004f60| 2e 42 20 3d 20 49 6e 74 | 28 4d 69 64 28 53 74 79 |.B = Int|(Mid(Sty|
|00004f70| 6c 65 53 74 72 69 6e 67 | 2c 20 53 74 79 6c 65 50 |leString|, StyleP|
|00004f80| 6f 73 2c 20 33 29 29 3b | 0d 0a 09 53 74 79 6c 65 |os, 3));|...Style|
|00004f90| 50 6f 73 20 2b 3d 20 33 | 3b 0d 0a 0d 0a 09 43 75 |Pos += 3|;.....Cu|
|00004fa0| 72 72 65 6e 74 53 74 79 | 6c 65 2e 42 47 43 6f 6c |rrentSty|le.BGCol|
|00004fb0| 6f 72 2e 52 20 3d 20 49 | 6e 74 28 4d 69 64 28 53 |or.R = I|nt(Mid(S|
|00004fc0| 74 79 6c 65 53 74 72 69 | 6e 67 2c 20 53 74 79 6c |tyleStri|ng, Styl|
|00004fd0| 65 50 6f 73 2c 20 33 29 | 29 3b 0d 0a 09 53 74 79 |ePos, 3)|);...Sty|
|00004fe0| 6c 65 50 6f 73 20 2b 3d | 20 33 3b 0d 0a 09 43 75 |lePos +=| 3;...Cu|
|00004ff0| 72 72 65 6e 74 53 74 79 | 6c 65 2e 42 47 43 6f 6c |rrentSty|le.BGCol|
|00005000| 6f 72 2e 47 20 3d 20 49 | 6e 74 28 4d 69 64 28 53 |or.G = I|nt(Mid(S|
|00005010| 74 79 6c 65 53 74 72 69 | 6e 67 2c 20 53 74 79 6c |tyleStri|ng, Styl|
|00005020| 65 50 6f 73 2c 20 33 29 | 29 3b 0d 0a 09 53 74 79 |ePos, 3)|);...Sty|
|00005030| 6c 65 50 6f 73 20 2b 3d | 20 33 3b 0d 0a 09 43 75 |lePos +=| 3;...Cu|
|00005040| 72 72 65 6e 74 53 74 79 | 6c 65 2e 42 47 43 6f 6c |rrentSty|le.BGCol|
|00005050| 6f 72 2e 42 20 3d 20 49 | 6e 74 28 4d 69 64 28 53 |or.B = I|nt(Mid(S|
|00005060| 74 79 6c 65 53 74 72 69 | 6e 67 2c 20 53 74 79 6c |tyleStri|ng, Styl|
|00005070| 65 50 6f 73 2c 20 33 29 | 29 3b 0d 0a 09 53 74 79 |ePos, 3)|);...Sty|
|00005080| 6c 65 50 6f 73 20 2b 3d | 20 33 3b 0d 0a 0d 0a 09 |lePos +=| 3;.....|
|00005090| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 2e 62 43 65 |CurrentS|tyle.bCe|
|000050a0| 6e 74 65 72 20 3d 20 4d | 69 64 28 53 74 79 6c 65 |nter = M|id(Style|
|000050b0| 53 74 72 69 6e 67 2c 20 | 53 74 79 6c 65 50 6f 73 |String, |StylePos|
|000050c0| 2b 2b 2c 20 31 29 20 3d | 3d 20 22 54 22 3b 0d 0a |++, 1) =|= "T";..|
|000050d0| 09 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 62 4c |.Current|Style.bL|
|000050e0| 69 6e 6b 20 3d 20 4d 69 | 64 28 53 74 79 6c 65 53 |ink = Mi|d(StyleS|
|000050f0| 74 72 69 6e 67 2c 20 53 | 74 79 6c 65 50 6f 73 2b |tring, S|tylePos+|
|00005100| 2b 2c 20 31 29 20 3d 3d | 20 22 54 22 3b 0d 0a 09 |+, 1) ==| "T";...|
|00005110| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 2e 62 55 6e |CurrentS|tyle.bUn|
|00005120| 64 65 72 6c 69 6e 65 20 | 3d 20 4d 69 64 28 53 74 |derline |= Mid(St|
|00005130| 79 6c 65 53 74 72 69 6e | 67 2c 20 53 74 79 6c 65 |yleStrin|g, Style|
|00005140| 50 6f 73 2b 2b 2c 20 31 | 29 20 3d 3d 20 22 54 22 |Pos++, 1|) == "T"|
|00005150| 3b 0d 0a 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |;...Curr|entStyle|
|00005160| 2e 62 4e 6f 42 52 20 3d | 20 4d 69 64 28 53 74 79 |.bNoBR =| Mid(Sty|
|00005170| 6c 65 53 74 72 69 6e 67 | 2c 20 53 74 79 6c 65 50 |leString|, StyleP|
|00005180| 6f 73 2b 2b 2c 20 31 29 | 20 3d 3d 20 22 54 22 3b |os++, 1)| == "T";|
|00005190| 0d 0a 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |...Curre|ntStyle.|
|000051a0| 62 48 65 61 64 69 6e 67 | 20 3d 20 4d 69 64 28 53 |bHeading| = Mid(S|
|000051b0| 74 79 6c 65 53 74 72 69 | 6e 67 2c 20 53 74 79 6c |tyleStri|ng, Styl|
|000051c0| 65 50 6f 73 2b 2b 2c 20 | 31 29 20 3d 3d 20 22 54 |ePos++, |1) == "T|
|000051d0| 22 3b 0d 0a 09 43 75 72 | 72 65 6e 74 53 74 79 6c |";...Cur|rentStyl|
|000051e0| 65 2e 62 42 6f 6c 64 20 | 3d 20 4d 69 64 28 53 74 |e.bBold |= Mid(St|
|000051f0| 79 6c 65 53 74 72 69 6e | 67 2c 20 53 74 79 6c 65 |yleStrin|g, Style|
|00005200| 50 6f 73 2b 2b 2c 20 31 | 29 20 3d 3d 20 22 54 22 |Pos++, 1|) == "T"|
|00005210| 3b 0d 0a 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |;...Curr|entStyle|
|00005220| 2e 62 42 6c 69 6e 6b 20 | 3d 20 4d 69 64 28 53 74 |.bBlink |= Mid(St|
|00005230| 79 6c 65 53 74 72 69 6e | 67 2c 20 53 74 79 6c 65 |yleStrin|g, Style|
|00005240| 50 6f 73 2b 2b 2c 20 31 | 29 20 3d 3d 20 22 54 22 |Pos++, 1|) == "T"|
|00005250| 3b 0d 0a 0d 0a 09 72 65 | 74 75 72 6e 20 43 68 61 |;.....re|turn Cha|
|00005260| 72 43 6f 75 6e 74 3b 0d | 0a 7d 0d 0a 0d 0a 00 |rCount;.|.}..... |
+--------+-------------------------+-------------------------+--------+--------+